replbase 0.0.50__tar.gz → 0.0.52__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: replbase
3
- Version: 0.0.50
3
+ Version: 0.0.52
4
4
  Summary: "Combination of other REPL tools into a reusable class that generates a REPL"
5
5
  License: MIT
6
6
  Author: Joseph Bochinski
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "replbase"
7
- version = "0.0.50"
7
+ version = "0.0.52"
8
8
  description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  license = "MIT"
@@ -634,6 +634,13 @@ class ReplBase:
634
634
  except (EOFError, KeyboardInterrupt):
635
635
  self.print(f"[warn]Exiting REPL ({self.title})...[/warn]")
636
636
  break
637
+ except argparse.ArgumentError as e:
638
+ self.print(f"[error]Error parsing arguments: {e}[/error]")
639
+ except argparse.ArgumentTypeError as e:
640
+ self.print(f"[error]Error parsing arguments: {e}[/error]")
641
+ except Exception as e:
642
+ self.print(f"[error]Error: {e}[/error]")
643
+ self.print(type(e))
637
644
 
638
645
  if self.parent:
639
646
  self.parent.print_prompt()
File without changes
File without changes