mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make file module work on python 2.4, fix #9080
Python 2.4 do not support "except ... as ..." construct, so revert back to the older syntax.
This commit is contained in:
parent
1bae4e4df1
commit
049c9c6b18
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ def main():
|
|||
module.fail_json(msg='Cannot touch other than files and directories')
|
||||
try:
|
||||
module.set_fs_attributes_if_different(file_args, True)
|
||||
except SystemExit as e:
|
||||
except SystemExit, e:
|
||||
if e.code:
|
||||
# We take this to mean that fail_json() was called from
|
||||
# somewhere in basic.py
|
||||
|
|
Loading…
Reference in a new issue