mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fixing compile time error exception handling for python 3. (#3843)
This commit is contained in:
parent
e2dbd0f445
commit
c3aab8ddcf
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue