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:
parent
43bae13418
commit
4b12a6c484
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user