From ea5dd6e066b5a8faf7a6e5e766452001dad44514 Mon Sep 17 00:00:00 2001 From: "jules@lens" Date: Tue, 28 May 2019 14:01:49 +0200 Subject: show all verified papers even if s2 deletes the connection --- scraper/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scraper/util.py') diff --git a/scraper/util.py b/scraper/util.py index 05b01fa7..c7e18b44 100644 --- a/scraper/util.py +++ b/scraper/util.py @@ -67,12 +67,20 @@ def read_text(fn): return f.read() def read_json(fn): + #try: with open(fn, 'r') as json_file: return json.load(json_file) + #except: + # print("ERROR READING: {}".format(fn)) + # return {} def write_json(fn, data): + #try: with open(fn, 'w') as outfile: json.dump(data, outfile) + #except: + # print("ERROR WRITING: {}".format(fn)) + # return {} def write_report(fn, title=None, keys=None, rows=[]): with open(fn, 'w') as f: -- cgit v1.2.3-70-g09d2