diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-04-18 18:45:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-04-18 18:45:51 +0000 |
commit | 04fd7059a9bdc519f72c92085bc2453289a1839b (patch) | |
tree | ee6ab775969b952780b116eb737b5974b82be2d1 | |
parent | ec014e8c69e65b56063735ee47cb29173cae113e (diff) | |
download | fetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.tar.gz fetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.tar.bz2 fetchmail-04fd7059a9bdc519f72c92085bc2453289a1839b.zip |
Fix site deletion.
svn path=/trunk/; revision=2440
-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 |