diff options
author | Iryna Cherniavska <i.chernyavska@gmail.com> | 2015-05-15 20:21:33 -0700 |
---|---|---|
committer | Iryna Cherniavska <i.chernyavska@gmail.com> | 2015-05-15 20:21:33 -0700 |
commit | d0eef1bb1447737b7341da268e3dc6361d17a9c3 (patch) | |
tree | ef556281ef9a2d19d3c828f108cdfaf2a0fa5aa2 | |
parent | 4bc51ccc1179657311edb3a9a6dc9335aa194b20 (diff) | |
parent | 63706bb5a021776086880b365ae449741e179db2 (diff) |
Merge pull request #234 from dbcli/amjith/general_cleanup
Remove unnecessary finally clause.
-rwxr-xr-x | pgcli/main.py | 9 |
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): |