remove single quotes in some logging messages (#4908)
('FileNotFoundError: [Errno 2] No such file or directory: ''')
->
(FileNotFoundError: [Errno 2] No such file or directory: '')
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user