From 7c3b3d9d6ceff325bd9b36a2efcac1122e712123 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 31 Jan 2020 01:04:44 +0100 Subject: fetchmailconf: delete server entries properly. While here, fix exception catcher. --- fetchmailconf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetchmailconf.py') diff --git a/fetchmailconf.py b/fetchmailconf.py index 052e3fcd..2350bc36 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -812,9 +812,9 @@ class ConfigurationEdit(Frame, MyWidget): def server_delete(self, sitename): try: for user_it in list(self.subwidgets.keys()): - user_it.destruct() - del self.configuration[sitename] - except e: + self.configuration[sitename].destruct() + del self.configuration[sitename] + except Exception as e: print("Exception discarded in ConfigurationEdit.server_delete(): {}".format(e)) def edit(self, mode): -- cgit v1.2.3