aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmailconf.py')
-rwxr-xr-xfetchmailconf.py6
1 files changed, 3 insertions, 3 deletions
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):