Skip to content

Commit ee0277d

Browse files
committed
hotfix missing glossary crash
1 parent bcde7c3 commit ee0277d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepqt/driver_mainwindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def load_glossary(self):
364364
"""
365365
path = Path(self.config.glossary_path)
366366

367-
if not path.exists():
367+
if not path.is_file():
368368
logger.warning(f"Glossary file not found: {path}")
369369
self.statusbar.showMessage(f"Glossary file not found.", 10_000)
370370
return

0 commit comments

Comments
 (0)