From ff1d625dc8eef15cc1ffac792717be8710c7740e Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Fri, 12 Feb 2021 20:26:37 +0100 Subject: [PATCH] Fix logging of exception --- nw/gui/wordlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/gui/wordlist.py b/nw/gui/wordlist.py index 5ce377cc..0d3e3072 100644 --- a/nw/gui/wordlist.py +++ b/nw/gui/wordlist.py @@ -156,9 +156,9 @@ class GuiWordList(QDialog): for i in range(self.listBox.count()): outFile.write(self.listBox.item(i).text() + "\n") - except Exception as e: + except Exception: logger.error("Could not save new word list") - logger.error(str(e)) + nw.logException() self.reject() if os.path.isfile(dctFile):