diff options
Diffstat (limited to 'logactio')
-rwxr-xr-x | logactio | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,9 +1,9 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # # logactio - simple framework for doing configured action on certain # log file events # -# Copyright 2012 - 2015 David Sommerseth <dazo@eurephia.org> +# Copyright 2012 - 2020 David Sommerseth <dazo@eurephia.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -75,9 +75,9 @@ if __name__ == '__main__': main = LogActio(opts.cfg, opts.daemon, opts.pidfile, logger.Log, opts.stdoutredir) main.Run() sys.exit(0) - except Exception, e: + except Exception as e: if opts.trace: import traceback traceback.print_exc(file=sys.stdout) else: - print "** ERROR ** %s" % str(e) + print("** ERROR ** %s" % str(e)) |