From 7d1dec57597583bed54bfb27881e41ead9f74ce3 Mon Sep 17 00:00:00 2001 From: Yilin Xia Date: Tue, 7 Oct 2025 08:39:23 -0500 Subject: [PATCH 1/2] add citations --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e8345ada..f52f204d 100644 --- a/README.md +++ b/README.md @@ -266,6 +266,10 @@ $ logica mentions.l run Mentions Note that cities of Los Angeles and Las Vegas are mentioned in this table due to known missclasification issue in the GDELT data analysis. --> + +## Citations +For citations, see our list of [Logica publications](https://logica-web.github.io/publications/). + ## Feedback Feel free to create [github issues](https://github.com/EvgSkv/logica/issues) From df24bfeeff99a2085227415b05bc5d432d60dd54 Mon Sep 17 00:00:00 2001 From: Rowan Skewes Date: Sat, 1 Nov 2025 23:26:12 +1100 Subject: [PATCH 2/2] Suppress BrokenPipeError when printing results --- logica.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/logica.py b/logica.py index 804ffbbc..6290d75f 100755 --- a/logica.py +++ b/logica.py @@ -346,7 +346,10 @@ def main(argv): o, _ = p.communicate(formatted_sql.encode()) else: assert False, 'Unknown engine: %s' % engine - print(o.decode()) + try: + print(o.decode()) + except BrokenPipeError: + pass def run_main():