[dl] improve invalid 'subcategory' value warning (#7103)
This commit is contained in:
@@ -91,9 +91,9 @@ class DownloaderBase():
|
|||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _report_config_error(self, subcat, value):
|
def _report_config_error(self, subcategory, value):
|
||||||
self.log.warning("'%s' set to %s instead of object",
|
config.log.warning("Subcategory '%s' set to '%s' instead of object",
|
||||||
subcat, util.json_dumps(value))
|
subcategory, util.json_dumps(value).strip('"'))
|
||||||
|
|
||||||
def download(self, url, pathfmt):
|
def download(self, url, pathfmt):
|
||||||
"""Write data from 'url' into the file specified by 'pathfmt'"""
|
"""Write data from 'url' into the file specified by 'pathfmt'"""
|
||||||
|
|||||||
Reference in New Issue
Block a user