From 04fd7059a9bdc519f72c92085bc2453289a1839b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Apr 1999 18:45:51 +0000 Subject: Fix site deletion. svn path=/trunk/; revision=2440 --- fetchmailconf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3