summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-05-14 21:22:21 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-05-14 21:22:21 -0700
commitb99344e4c1cf577a4380d367a9633e204b6e975d (patch)
tree8af6655b0603fae43652ccf96ea88522fa4a62a6
parent801a0fefcf5799eed8073b623b2e7fdb2f522c42 (diff)
Log the exception instead of merely suppressing it.
-rwxr-xr-xpgcli/main.py4
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):