Skip to content

Commit

Permalink
Fixing E1205 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
madereddy committed Nov 16, 2023
1 parent f172b76 commit 8bc5b81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions noisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _browse_from_links(self, depth=0):
self._remove_and_blacklist(random_link)
except (requests.exceptions.RequestException, UnicodeDecodeError):
logging.debug(
"Exception on URL: %s, removing from list and trying again!" % random_link
"Exception on URL: %s, removing from list and trying again!".format(random_link)
)
self._remove_and_blacklist(random_link)
self._browse_from_links(depth + 1)
Expand Down Expand Up @@ -225,11 +225,11 @@ def crawl(self):
logging.debug("found {} links", len(self._links))
self._browse_from_links()
except (requests.exceptions.RequestException, UnicodeDecodeError):
logging.warning("Error connecting to root url: {}", url)
logging.warning("Error connecting to root url: {}".format(url))
except MemoryError:
logging.warning("Error: content at url: {} is exhausting the memory", url)
logging.warning("Error: content at url: {} is exhausting the memory".format(url))
except LocationParseError:
logging.warning("Error encountered during parsing of: {}", url)
logging.warning("Error encountered during parsing of: {}".format(url))
except self.CrawlerTimedOut:
logging.info("Timeout has exceeded, exiting")
return
Expand Down

0 comments on commit 8bc5b81

Please sign in to comment.