MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / error_msg

Function error_msg

brainworkshop.py:40–46  ·  view source on GitHub ↗
(msg, e = None)

Source from the content-addressed store, hash-verified

38 else:
39 print('debug: %s' % str(msg))
40def 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)
47def get_argv(arg):
48 if arg in sys.argv:
49 index = sys.argv.index(arg)

Callers 2

get_argvFunction · 0.85
save_last_userFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected