mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Update bare exceptions to specify Exception.
This will keep us from accidentally catching program-exiting exceptions like KeyboardInterupt and SystemExit.
This commit is contained in:
@@ -339,7 +339,7 @@ class RHEVConn(object):
|
||||
api = API(url=url, username=user, password=password, insecure=str(insecure_api))
|
||||
api.test()
|
||||
self.conn = api
|
||||
except:
|
||||
except Exception:
|
||||
raise Exception("Failed to connect to RHEV-M.")
|
||||
|
||||
def __del__(self):
|
||||
|
||||
Reference in New Issue
Block a user