summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-05-14 22:04:57 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-05-14 22:04:57 -0700
commit63706bb5a021776086880b365ae449741e179db2 (patch)
treeebbbc2a6f28714dbbe71f53c09dfe688d6cbfafc
parentb99344e4c1cf577a4380d367a9633e204b6e975d (diff)
Remove unnecessary finally clause.
-rwxr-xr-xpgcli/main.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 933e40ef..7df76b41 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -310,15 +310,6 @@ class PGCli(object):
if pgspecial.TIMING_ENABLED:
print('Command Time:', duration)
print('Format Time:', total)
- finally:
- # Ignore any errors thrown when consuming the generator
- # 'res'.
- try:
- for title, cur, _, _ in res:
- if hasattr(cur, 'close'):
- cur.close()
- 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):