# Whatever your program needs to do to get its data can be done
# either here in this function directly, or elsewhere with
# modification to the global variable `wx_data`.
+ #
+ # NOTE: The LOG class from infoex-autowx is available, so you may
+ # issue e.g. LOG.info('some helpful information') in your
+ # program.
return wx_data
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")
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)