1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-18 11:09:32 +00:00
This commit is contained in:
igeni 2024-04-23 14:13:27 -07:00 committed by GitHub
commit a09c0790e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ def win_service_handler(stop_event, *args):
TODO
except Exception as e:
tb = traceback.format_exc()
msg = str(e) + '\n' + tb
msg = f"{e}\n{tb}"
win_service_report_event(service_name, msg, is_error=True)
raise
@ -174,7 +174,7 @@ def win_service_main(service_name, real_main, argc, argv_raw):
TODO
except Exception as e:
tb = traceback.format_exc()
msg = str(e) + '\n' + tb
msg = f'{e}\n{tb}'
win_service_report_event(service_name, msg, is_error=True)
raise
@ -195,7 +195,7 @@ def win_service_start(service_name, real_main):
raise OSError('ctypes start failed: %s' % ctypes.FormatError())
except Exception as e:
tb = traceback.format_exc()
msg = str(e) + '\n' + tb
msg = f'{e}\n{tb}'
win_service_report_event(service_name, msg, is_error=True)
raise