mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-10 04:12:15 +03:00
Dont crash when journal_dir is None
Ensures that journal_dir is always at least an empty string. Fixes #639
This commit is contained in:
parent
b9075f1159
commit
68fb18310d
@ -118,9 +118,14 @@ class EDLogs(FileSystemEventHandler):
|
|||||||
|
|
||||||
def start(self, root):
|
def start(self, root):
|
||||||
self.root = root
|
self.root = root
|
||||||
logdir = expanduser(config.get('journaldir') or config.default_journal_dir) # type: ignore # config is weird
|
journal_dir = config.get('journaldir') or config.default_journal_dir
|
||||||
|
|
||||||
if not logdir or not isdir(logdir): # type: ignore # config does weird things in its get
|
if journal_dir is None:
|
||||||
|
journal_dir = ''
|
||||||
|
|
||||||
|
logdir = expanduser(journal_dir) # type: ignore # config is weird
|
||||||
|
|
||||||
|
if not logdir or not isdir(logdir):
|
||||||
self.stop()
|
self.stop()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user