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