summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/common/sys_info.py
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-09-07 17:59:46 -0700
committerToshio Kuratomi <a.badger@gmail.com>2018-12-16 15:03:19 -0800
commit3fba0062078cc04eabb460ec1eb13a4739235199 (patch)
tree9c09103ce103a90f97ccf3736ca6c2502d7860f8 /lib/ansible/module_utils/common/sys_info.py
parent5147e792d398258a5a87c3271ea89c1c4fd2f4d3 (diff)
downloadansible-3fba0062078cc04eabb460ec1eb13a4739235199.tar.gz
Update bare exceptions to specify Exception.
This will keep us from accidentally catching program-exiting exceptions like KeyboardInterupt and SystemExit.
Diffstat (limited to 'lib/ansible/module_utils/common/sys_info.py')
-rw-r--r--lib/ansible/module_utils/common/sys_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/common/sys_info.py b/lib/ansible/module_utils/common/sys_info.py
index 022bf51bfe..8b62de4f97 100644
--- a/lib/ansible/module_utils/common/sys_info.py
+++ b/lib/ansible/module_utils/common/sys_info.py
@@ -28,7 +28,7 @@ def get_distribution():
distribution = 'Amazon'
else:
distribution = 'OtherLinux'
- except:
+ except Exception:
# FIXME: MethodMissing, I assume?
distribution = platform.dist()[0].capitalize()
return distribution