summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/nxos/nxos_snapshot.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/network/nxos/nxos_snapshot.py')
-rw-r--r--lib/ansible/modules/network/nxos/nxos_snapshot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/network/nxos/nxos_snapshot.py b/lib/ansible/modules/network/nxos/nxos_snapshot.py
index ad21459c24..3393087777 100644
--- a/lib/ansible/modules/network/nxos/nxos_snapshot.py
+++ b/lib/ansible/modules/network/nxos/nxos_snapshot.py
@@ -298,7 +298,7 @@ def write_on_file(content, filename, module):
report = open(filepath, 'w')
report.write(content)
report.close()
- except:
+ except Exception:
module.fail_json(msg="Error while writing on file.")
return filepath