mypy: minimal annotations to enable a clean run

This commit is contained in:
Sarah Hoffmann
2022-06-30 10:48:04 +02:00
parent b1903f0fbf
commit 9b636fdc10
5 changed files with 23 additions and 5 deletions

View File

@@ -21,8 +21,8 @@ try:
from osmium.replication.server import ReplicationServer
from osmium import WriteHandler
except ImportError as exc:
logging.getLogger().fatal("pyosmium not installed. Replication functions not available.\n"
"To install pyosmium via pip: pip3 install osmium")
logging.getLogger().critical("pyosmium not installed. Replication functions not available.\n"
"To install pyosmium via pip: pip3 install osmium")
raise UsageError("replication tools not available") from exc
LOG = logging.getLogger()