Island: Fix mypy issues in server_setup.py

This commit is contained in:
Kekoa Kaaikala 2022-09-21 18:06:53 +00:00
parent 6209ec47cd
commit 7801a98a15
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import logging
import sys import sys
from pathlib import Path from pathlib import Path
from threading import Thread from threading import Thread
from typing import Sequence, Tuple from typing import Optional, Sequence, Tuple
import gevent.hub import gevent.hub
import requests import requests
@ -151,7 +151,7 @@ def _start_mongodb(data_dir: Path) -> MongoDbProcess:
return mongo_db_process return mongo_db_process
def _connect_to_mongodb(mongo_db_process: MongoDbProcess): def _connect_to_mongodb(mongo_db_process: Optional[MongoDbProcess]):
try: try:
mongo_setup.connect_to_mongodb(MONGO_CONNECTION_TIMEOUT) mongo_setup.connect_to_mongodb(MONGO_CONNECTION_TIMEOUT)
except mongo_setup.MongoDBTimeOutError as err: except mongo_setup.MongoDBTimeOutError as err: