mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
chore: fix flake8 warnings in haiku and test_haiku
Refs: OPS-70
This commit is contained in:
parent
3889809d07
commit
df6e964751
2 changed files with 2 additions and 4 deletions
|
|
@ -48,11 +48,11 @@ class Haiku:
|
|||
|
||||
if len(lines) < 3:
|
||||
if tries < 20:
|
||||
logging.warning(f"too few lines, trying again")
|
||||
logging.warning("too few lines, trying again")
|
||||
logging.debug(lines)
|
||||
continue
|
||||
else:
|
||||
logging.warning(f"too many tries, aborting")
|
||||
logging.warning("too many tries, aborting")
|
||||
raise Exception(
|
||||
"Generating the haiku took too many tries")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue