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:
parent
4727ad6f57
commit
9671bd6d40
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user