aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-06-29 23:23:27 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-06-29 23:23:27 +0000
commit98344ba30d71ee55b466c2d90566cbf67177f0c1 (patch)
tree6adca3f7d9808077da17ff5c97cb950bf5ab1751 /fetchmailconf
parent1a0a5c7576a10cb85fd52fc70b0c1cf2fa4195c3 (diff)
downloadfetchmail-98344ba30d71ee55b466c2d90566cbf67177f0c1.tar.gz
fetchmail-98344ba30d71ee55b466c2d90566cbf67177f0c1.tar.bz2
fetchmail-98344ba30d71ee55b466c2d90566cbf67177f0c1.zip
Allow fetchmail to cope if the Tcl/Tk environment is too old.
svn path=/trunk/; revision=1948
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf12
1 files changed, 8 insertions, 4 deletions
diff --git a/fetchmailconf b/fetchmailconf
index b22a91d7..ac41880d 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -1373,10 +1373,14 @@ if __name__ == '__main__':
# OK, now run the configuration edit
root = MainWindow(rcfile)
- icon_image = PhotoImage(data=fetchmail_gif)
- icon_window = Toplevel()
- Label(icon_window, image=icon_image, bg='black').pack()
- root.master.iconwindow(icon_window)
+ try:
+ # Some older pythons will error out on this
+ icon_image = PhotoImage(data=fetchmail_gif)
+ icon_window = Toplevel()
+ Label(icon_window, image=icon_image, bg='black').pack()
+ root.master.iconwindow(icon_window)
+ except:
+ pass
root.mainloop()
# The following sets edit modes for GNU EMACS