wizlib 2.0.8__tar.gz → 2.0.10__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.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 2.0.8
3
+ Version: 2.0.10
4
4
  Summary: Framework for flexible and powerful command-line applications
5
5
  License: MIT
6
6
  Author: Steampunk Wizard
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wizlib"
3
- version = "2.0.8"
3
+ version = "2.0.10"
4
4
  description = "Framework for flexible and powerful command-line applications"
5
5
  authors = ["Steampunk Wizard <wizlib@steampunkwizard.ca>"]
6
6
  license = "MIT"
@@ -46,6 +46,7 @@ class WizApp:
46
46
  else:
47
47
  print(f"\n{RED}{type(error).__name__}: " +
48
48
  f"{error}{RESET}\n", file=sys.stderr)
49
+ sys.exit(1)
49
50
 
50
51
  @classmethod
51
52
  def initialize(cls):
@@ -80,7 +80,8 @@ class ConfigHandler(Handler):
80
80
  handler = cls()
81
81
 
82
82
  def fake_env(name):
83
- if name in vals:
84
- return vals[name]
83
+ key = name.replace('-', '_')
84
+ if key in vals:
85
+ return vals[key]
85
86
  handler.env = fake_env
86
87
  return handler
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes