Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
cockroachdb_query: remove unnecessary try-except (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersson007 authored Nov 10, 2021
1 parent fa939cf commit 842671f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/modules/cockroachdb_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,8 @@ def main():
args, fetch_from_cursor)

# Close cursor and conn
try:
cursor.close()
conn.close()
except Exception:
pass
cursor.close()
conn.close()

# Users will get this in JSON output after execution
kw = dict(
Expand Down

0 comments on commit 842671f

Please sign in to comment.