Merge 36c4eb19b2
into 668332b973
This commit is contained in:
commit
a09c0790e1
|
@ -144,7 +144,7 @@ def win_service_handler(stop_event, *args):
|
||||||
TODO
|
TODO
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
msg = str(e) + '\n' + tb
|
msg = f"{e}\n{tb}"
|
||||||
win_service_report_event(service_name, msg, is_error=True)
|
win_service_report_event(service_name, msg, is_error=True)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ def win_service_main(service_name, real_main, argc, argv_raw):
|
||||||
TODO
|
TODO
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
msg = str(e) + '\n' + tb
|
msg = f'{e}\n{tb}'
|
||||||
win_service_report_event(service_name, msg, is_error=True)
|
win_service_report_event(service_name, msg, is_error=True)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ def win_service_start(service_name, real_main):
|
||||||
raise OSError('ctypes start failed: %s' % ctypes.FormatError())
|
raise OSError('ctypes start failed: %s' % ctypes.FormatError())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
msg = str(e) + '\n' + tb
|
msg = f'{e}\n{tb}'
|
||||||
win_service_report_event(service_name, msg, is_error=True)
|
win_service_report_event(service_name, msg, is_error=True)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue