X-Git-Url: https://wylark.com/src/infoex-autowx.git/blobdiff_plain/638c4f11d29b685bc7c485c10ce62f2c61ae4a54..25a66f0434b12784c2e93c8d0b32416d0f7a4ece:/infoex-autowx.py?ds=inline diff --git a/infoex-autowx.py b/infoex-autowx.py index f285c42..3fe07fc 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -39,7 +39,7 @@ import zeep import zeep.cache import zeep.transports -__version__ = '2.2.0' +__version__ = '3.0.0' LOG = logging.getLogger(__name__) LOG.setLevel(logging.NOTSET) @@ -228,9 +228,9 @@ def main(): if infoex['wx_data'] is None: infoex['wx_data'] = [] - except Exception: + except Exception as exc: LOG.error("Python program for custom Wx data failed in " - "execution") + "execution: " + str(exc)) sys.exit(1) LOG.info("Successfully executed external Python program") @@ -241,6 +241,10 @@ def main(): LOG.error("Specified Python program for custom Wx data " "was not found") sys.exit(1) + except Exception as exc: + LOG.error("A problem was encountered when attempting to " + "load your custom Wx program: " + str(exc)) + sys.exit(1) LOG.info("Time taken to get all data : %.3f sec", time.time() - time_all_elements)