diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
commit | c19f6525465065496c485a5084a86707e4923580 (patch) | |
tree | eca4439d3eb4fba5427dbae28f7a51e143af91e9 /lib/modules/fetch_cmd.py | |
parent | fc337924c7e66258319c6b6d538660240cfeda5e (diff) |
Port custom modules to python3.
Diffstat (limited to 'lib/modules/fetch_cmd.py')
-rw-r--r-- | lib/modules/fetch_cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/fetch_cmd.py b/lib/modules/fetch_cmd.py index ac8757f..ca3e817 100644 --- a/lib/modules/fetch_cmd.py +++ b/lib/modules/fetch_cmd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Fetch the output of a remote command # Copyright (c) 2016 Guilhem Moulin <guilhem@fripost.org> @@ -48,7 +48,7 @@ def main(): if stdin is not None: stdin.close() - except KeyError, e: + except KeyError as e: module.fail_json(msg=str(e)) module.exit_json(changed=changed) |