Fixing compile time error exception handling for python 3. (#3843)

This commit is contained in:
@ 2016-06-02 14:51:35 -07:00 committed by Matt Clay
commit c3aab8ddcf
3 changed files with 5 additions and 5 deletions

View file

@ -174,7 +174,7 @@ def core(module):
try:
api_token = module.params['api_token'] or os.environ['DO_API_TOKEN'] or os.environ['DO_API_KEY']
except KeyError, e:
except KeyError as e:
module.fail_json(msg='Unable to load %s' % e.message)
changed = True