(msg, e = None)
| 38 | else: |
| 39 | print('debug: %s' % str(msg)) |
| 40 | def error_msg(msg, e = None): |
| 41 | if DEBUG and e: |
| 42 | exc_type, exc_obj, exc_tb = sys.exc_info() |
| 43 | fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] |
| 44 | print("ERROR: %s\n\t%s Line %i" % (msg, e, exc_tb.tb_lineno)) |
| 45 | else: |
| 46 | print("ERROR: %s" % msg) |
| 47 | def get_argv(arg): |
| 48 | if arg in sys.argv: |
| 49 | index = sys.argv.index(arg) |
no outgoing calls
no test coverage detected