From 27ce1d3cc7298c8a870c61ba46efe4ce197d547f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 22 Nov 2003 06:54:42 +0000 Subject: [PATCH] Fixed an uncaught exception in configure. --- plugins/Lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Lookup.py b/plugins/Lookup.py index 08420ba5a..7c52db5cc 100644 --- a/plugins/Lookup.py +++ b/plugins/Lookup.py @@ -62,7 +62,7 @@ def configure(onStart, afterConnect, advanced): filename = something('What\'s the filename?') try: fd = file(os.path.join(conf.dataDir, filename)) - except OSError, e: + except EnvironmentError, e: print 'I couldn\'t open that file: %s' % e continue counter = 1