Skip to content

Commit

Permalink
Update dependencies in lockfile (#417)
Browse files Browse the repository at this point in the history
* Update dependencies in lockfile

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix two linting errors

Signed-off-by: Aurélien Bompard <[email protected]>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Aurélien Bompard <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Aurélien Bompard <[email protected]>
  • Loading branch information
renovate[bot] and abompard authored Nov 29, 2024
1 parent 9d6cb62 commit b1f7e62
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 327 deletions.
4 changes: 2 additions & 2 deletions mirrormanager2/crawler/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def record_crawl_failure(self):
auto_disable = self.config.get("CRAWLER_AUTO_DISABLE", 4)
if self.host.crawl_failures >= auto_disable:
self.disable_host(
"Host has been disabled (user_active) after %d"
" consecutive crawl failures" % auto_disable
f"Host has been disabled (user_active) after {auto_disable}"
" consecutive crawl failures"
)

def disable_host(self, reason):
Expand Down
2 changes: 1 addition & 1 deletion mirrormanager2/crawler/rsync_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _run(self, url):
# run_rsync() returns a temporary file which needs to be closed
listing.close()

logger.debug("rsync listing has %d lines" % len(rsync))
logger.debug("rsync listing has %s lines", len(rsync))
return rsync

def _check_file(self, current_file_info, db_file_info):
Expand Down
Loading

0 comments on commit b1f7e62

Please sign in to comment.