From ee0277d5ee03ec1a9fa28a0a8cbe5fbf142da911 Mon Sep 17 00:00:00 2001 From: Voxel <41875513+VoxelCubes@users.noreply.github.com> Date: Sat, 3 Sep 2022 21:56:58 +0200 Subject: [PATCH] hotfix missing glossary crash --- deepqt/driver_mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepqt/driver_mainwindow.py b/deepqt/driver_mainwindow.py index 56e6e70..f39d049 100644 --- a/deepqt/driver_mainwindow.py +++ b/deepqt/driver_mainwindow.py @@ -364,7 +364,7 @@ def load_glossary(self): """ path = Path(self.config.glossary_path) - if not path.exists(): + if not path.is_file(): logger.warning(f"Glossary file not found: {path}") self.statusbar.showMessage(f"Glossary file not found.", 10_000) return