diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-05-14 21:22:21 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-05-14 21:22:21 -0700 |
commit | b99344e4c1cf577a4380d367a9633e204b6e975d (patch) | |
tree | 8af6655b0603fae43652ccf96ea88522fa4a62a6 | |
parent | 801a0fefcf5799eed8073b623b2e7fdb2f522c42 (diff) |
Log the exception instead of merely suppressing it.
-rwxr-xr-x | pgcli/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 5dc8395a..933e40ef 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -317,8 +317,8 @@ class PGCli(object): for title, cur, _, _ in res: if hasattr(cur, 'close'): cur.close() - except Exception: - pass + except Exception as e: + logger.error('Closing the cursor failed. %r', e) # Refresh the table names and column names if necessary. if need_completion_refresh(document.text): |