summaryrefslogtreecommitdiff
path: root/scraper/util.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2019-05-28 14:01:49 +0200
committerjules@lens <julescarbon@gmail.com>2019-05-28 14:01:49 +0200
commitea5dd6e066b5a8faf7a6e5e766452001dad44514 (patch)
tree8b3e8e2ffadd5c0ec0f711512f8a5f47ec2701cf /scraper/util.py
parentafbfc3f6f527ffabc6515a72c6142cdb59d9a588 (diff)
show all verified papers even if s2 deletes the connection
Diffstat (limited to 'scraper/util.py')
-rw-r--r--scraper/util.py8
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: