X-Git-Url: https://wylark.com/src/infoex-autowx.git/blobdiff_plain/638c4f11d29b685bc7c485c10ce62f2c61ae4a54..e5e99725940efb3889e6aad4ff5661503d2f4af4:/infoex-autowx.py diff --git a/infoex-autowx.py b/infoex-autowx.py index f285c42..c191e5c 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -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)