Too many arguments for logging format string
95 try:
96 dl_result = download.download_files(url_to_target, num_threads=self.num_workers)
97 except ConnectionError as e:
98 logger.info('Remote end closed connection without response. Trying again in 5 seconds...', e) 99 time.sleep(5)
100 continue
101 break
Description
Too many arguments passed to the logging format string.
Bad practice
logger.error("Failed to retrieve URL ", url)
Recommended
logger.error("Failed to retrieve URL %s", url)