diff --git a/Utils/Dataflow/030_PDFAnalyzer/manager.py b/Utils/Dataflow/030_PDFAnalyzer/manager.py index 76895fa6f..ea36f8339 100644 --- a/Utils/Dataflow/030_PDFAnalyzer/manager.py +++ b/Utils/Dataflow/030_PDFAnalyzer/manager.py @@ -1083,6 +1083,8 @@ def add_papers(self, fnames=None, errors=None, n=None): if fnames is None: fnames = askopenfilenames(initialdir=cfg["WORK_DIR"], filetypes=[("PDF files", ".pdf")]) + if not fnames: + return False errors = {} n = 1 self.window.after(100, lambda: self.add_papers(fnames, errors, n))