1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

monitor: Properly type new_journal_file

Python was guessing and not allowing 'None', which it will be at shutdown
if this code triggers.
This commit is contained in:
Athanasius 2022-03-18 09:46:35 +00:00
parent 43bae13418
commit 4b12a6c484
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -430,7 +430,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# Check whether new log file started, e.g. client (re)started.
if emitter and emitter.is_alive():
new_journal_file = self.logfile # updated by on_created watchdog callback
new_journal_file: Optional[str] = self.logfile # updated by on_created watchdog callback
else:
# Poll
try: