diff options
-rwxr-xr-x | fetchmailconf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fetchmailconf b/fetchmailconf index e904662e..313edf2b 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -637,8 +637,10 @@ class ConfigurationEdit(Frame, MyWidget): self.subwidgets[sitename] = ServerEdit(sitename, self).edit(self.mode, Toplevel()) def server_delete(self, sitename): - if self.subwidgets.has_key(sitename): + try: del self.configuration[sitename] + except: + pass def edit(self, mode): self.mode = mode |