pyzenkit 0.66__tar.gz → 0.68__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.
Files changed (28) hide show
  1. {pyzenkit-0.66 → pyzenkit-0.68}/PKG-INFO +1 -1
  2. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/__init__.py +1 -1
  3. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/baseapp.py +8 -5
  4. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/jsonconf.py +1 -1
  5. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/PKG-INFO +1 -1
  6. {pyzenkit-0.66 → pyzenkit-0.68}/LICENSE.txt +0 -0
  7. {pyzenkit-0.66 → pyzenkit-0.68}/README.rst +0 -0
  8. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/daemonizer.py +0 -0
  9. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/__init__.py +0 -0
  10. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/test_baseapp.py +0 -0
  11. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/test_daemonizer.py +0 -0
  12. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/test_jsonconf.py +0 -0
  13. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/test_zendaemon.py +0 -0
  14. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/tests/test_zenscript.py +0 -0
  15. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/utils.py +0 -0
  16. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zencli.py +0 -0
  17. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zencli_modules/__init__.py +0 -0
  18. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zencli_modules/another_demo_module.py +0 -0
  19. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zencli_modules/demo_module.py +0 -0
  20. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zendaemon.py +0 -0
  21. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit/zenscript.py +0 -0
  22. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/SOURCES.txt +0 -0
  23. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/dependency_links.txt +0 -0
  24. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/not-zip-safe +0 -0
  25. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/requires.txt +0 -0
  26. {pyzenkit-0.66 → pyzenkit-0.68}/pyzenkit.egg-info/top_level.txt +0 -0
  27. {pyzenkit-0.66 → pyzenkit-0.68}/setup.cfg +0 -0
  28. {pyzenkit-0.66 → pyzenkit-0.68}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyzenkit
3
- Version: 0.66
3
+ Version: 0.68
4
4
  Summary: Python 3 script and daemon toolkit
5
5
  Home-page: https://pypi.org/project/pyzenkit/
6
6
  Author: Honza Mach
@@ -19,5 +19,5 @@ Python 3.
19
19
  """
20
20
 
21
21
  __author__ = "Honza Mach <honza.mach.ml@gmail.com>"
22
- __version__ = "0.66"
22
+ __version__ = "0.68"
23
23
 
@@ -1250,11 +1250,14 @@ class BaseApp: # pylint: disable=locally-disabled,too-many-public-methods, too-
1250
1250
  """
1251
1251
  self._stage_setup()
1252
1252
 
1253
- if self.c(self.CONFIG_ACTION):
1254
- self._stage_action()
1255
- else:
1256
- self._stage_process()
1257
- self._stage_teardown()
1253
+ try:
1254
+ if self.c(self.CONFIG_ACTION):
1255
+ self._stage_action()
1256
+ else:
1257
+ self._stage_process()
1258
+ self._stage_teardown()
1259
+ except Exception as e:
1260
+ self.error(e, trcb=e.__traceback__)
1258
1261
 
1259
1262
  self.dbgout("Exiting with return code '{}'".format(self.retc))
1260
1263
  sys.exit(self.retc)
@@ -150,7 +150,7 @@ def json_load(json_file, silent = False):
150
150
  :rtype: dict
151
151
  """
152
152
  try:
153
- with open(json_file, "r") as jsf:
153
+ with open(json_file, "r", encoding="utf-8") as jsf:
154
154
  contents = "\n".join((line for line in jsf if not line.lstrip().startswith(("#", "//"))))
155
155
  return json.loads(contents)
156
156
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyzenkit
3
- Version: 0.66
3
+ Version: 0.68
4
4
  Summary: Python 3 script and daemon toolkit
5
5
  Home-page: https://pypi.org/project/pyzenkit/
6
6
  Author: Honza Mach
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