aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-04-18 18:45:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-04-18 18:45:51 +0000
commit04fd7059a9bdc519f72c92085bc2453289a1839b (patch)
treeee6ab775969b952780b116eb737b5974b82be2d1
parentec014e8c69e65b56063735ee47cb29173cae113e (diff)
downloadfetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.tar.gz
fetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.tar.bz2
fetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.zip
Fix site deletion.
svn path=/trunk/; revision=2440
-rwxr-xr-xfetchmailconf4
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