remove single quotes in some logging messages (#4908)

('FileNotFoundError: [Errno 2] No such file or directory: ''')
->
(FileNotFoundError: [Errno 2] No such file or directory: '')
pull/4945/head
Mike Fährmann 9 months ago
parent 1d5ee4239d
commit 92fbf09643
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -159,7 +159,7 @@ class RedditExtractor(Extractor):
data = meta[item["media_id"]]
if data["status"] != "valid" or "s" not in data:
self.log.warning(
"gallery %s: skipping item %s ('status: %s')",
"gallery %s: skipping item %s (status: %s)",
submission["id"], item["media_id"], data.get("status"))
continue
src = data["s"]

@ -520,7 +520,7 @@ class DownloadJob(Job):
archive, archive_format, archive_pragma)
except Exception as exc:
extr.log.warning(
"Failed to open download archive at '%s' ('%s: %s')",
"Failed to open download archive at '%s' (%s: %s)",
archive, exc.__class__.__name__, exc)
else:
extr.log.debug("Using download archive '%s'", archive)

@ -41,7 +41,7 @@ class PostProcessor():
"_archive_" + self.name)
except Exception as exc:
self.log.warning(
"Failed to open %s archive at '%s' ('%s: %s')",
"Failed to open %s archive at '%s' (%s: %s)",
self.name, archive, exc.__class__.__name__, exc)
else:
self.log.debug("Using %s archive '%s'", self.name, archive)

Loading…
Cancel
Save