Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Sep 8, 2024
1 parent bc1cc5e commit 5601151
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions clashroyalebuildabot/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ def __init__(self, actions, auto_start=True):

@staticmethod
def _log_and_wait(prefix, delay):
if delay == 1:
suffix = "second."
else:
suffix = "seconds."
message = f"{prefix}. Waiting for {delay} {suffix}"
suffix = ""
if delay > 1:
suffix = "s"
message = f"{prefix}. Waiting for {delay} second{suffix}."
logger.info(message)
time.sleep(delay)
return None

@staticmethod
def _setup_logger():
Expand Down

0 comments on commit 5601151

Please sign in to comment.