Commit a699ff25 authored by ale's avatar ale
Browse files

More python3 fixes

parent 1fe71f69
......@@ -53,7 +53,7 @@ def daemonize(pidfile, username, main_function):
try:
pidfile.acquire()
except Exception, e:
except Exception as e:
log.error('could not write pidfile: %s' % str(e))
sys.exit(1)
......@@ -83,7 +83,7 @@ def start(opts):
'config_dir': os.path.dirname(opts.config)}
try:
config.update(yaml.load(open(opts.config, 'r')))
except Exception, e:
except Exception as e:
log.error('error loading configuration file %s: %s' % (
opts.config, str(e)))
......
......@@ -17,7 +17,7 @@ class StopWordPlugin(BasePlugin):
'stopwords.txt'))
try:
self._stopwords = utils.read_file(dictionary)
except IOError, e:
except IOError as e:
log.error('could not read stopwords from %s: %s' % (
dictionary, str(e)))
self._stopwords = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment