1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[actions] fix exception when 'msg' is not a string (#5683)

This commit is contained in:
Mike Fährmann 2024-06-17 22:59:20 +02:00
parent 4727ad6f57
commit 9671bd6d40
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -105,6 +105,7 @@ class LoggerAdapterActions():
self.error = functools.partial(self.log, logging.ERROR)
def log(self, level, msg, *args, **kwargs):
msg = str(msg)
if args:
msg = msg % args