MCPcopy
hub / github.com/roxy-wi/roxy-wi / out_error

Function out_error

app/modules/db/common.py:8–15  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

6
7
8def out_error(error):
9 error = str(error)
10 exc_type, exc_obj, exc_tb = sys.exc_info()
11 file_name = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
12 stk = traceback.extract_tb(exc_tb, 1)
13 function_name = stk[0][2]
14 error = f'{error} in function: {function_name} in file: {file_name}'
15 raise Exception(f'error: {error}')
16
17
18def not_unique_error(error):

Callers 15

update_user_statusFunction · 0.90
get_roxy_toolsFunction · 0.90
get_all_toolsFunction · 0.90
update_tool_cur_versionFunction · 0.90
update_tool_new_versionFunction · 0.90
get_tool_cur_versionFunction · 0.90
get_verFunction · 0.90
insert_service_metricsFunction · 0.90
delete_service_metricsFunction · 0.90
select_metricsFunction · 0.90
select_metrics_enabledFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected