diff --git a/senju/haiku.py b/senju/haiku.py index 969eec0..4854319 100644 --- a/senju/haiku.py +++ b/senju/haiku.py @@ -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") diff --git a/tests/test_haiku.py b/tests/test_haiku.py index d959278..3bd9644 100644 --- a/tests/test_haiku.py +++ b/tests/test_haiku.py @@ -5,14 +5,12 @@ from __future__ import annotations import os import json -import logging from pytest_httpserver import HTTPServer # do not remove this import. This is needed for # pytest fixtures to work import pytest # noqa: F401 -import senju from senju.haiku import Haiku # noqa: F401 # Note: these weird arguments are an indicator of what should be dome