mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:27:53 +00:00
avoided potential type's mismatch during concatenation and remove redundant type's conversion
This commit is contained in:
parent
a96a45b2cd
commit
36c4eb19b2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user