diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-05-28 14:01:49 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-05-28 14:01:49 +0200 |
| commit | ea5dd6e066b5a8faf7a6e5e766452001dad44514 (patch) | |
| tree | 8b3e8e2ffadd5c0ec0f711512f8a5f47ec2701cf /scraper/util.py | |
| parent | afbfc3f6f527ffabc6515a72c6142cdb59d9a588 (diff) | |
show all verified papers even if s2 deletes the connection
Diffstat (limited to 'scraper/util.py')
| -rw-r--r-- | scraper/util.py | 8 |
1 files changed, 8 insertions, 0 deletions
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: |
