aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--quarg/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/quarg/main.py b/quarg/main.py
index 29138e3..5e0aaf8 100644
--- a/quarg/main.py
+++ b/quarg/main.py
@@ -144,7 +144,7 @@ def main():
print(formatter.format_from(row))
except exc.SQLAlchemyError as err:
errx(err)
- except KeyboardInterrupt:
+ except (KeyboardInterrupt, BrokenPipeError):
session.rollback()
session.close()
sys.exit(1)