96abhishekarora
commited on
Commit
•
a9c8423
1
Parent(s):
ff96793
error handling
Browse files- AmericanStories.py +0 -1
AmericanStories.py
CHANGED
@@ -160,7 +160,6 @@ class AmericanStories(datasets.GeneratorBasedBuilder):
|
|
160 |
except:
|
161 |
print("Error loading file: " + filepath)
|
162 |
continue
|
163 |
-
data = json.load(f)
|
164 |
if "lccn" in data.keys():
|
165 |
scan_id = filepath.split('.')[0]
|
166 |
scan_date = filepath.split("_")[0]
|
|
|
160 |
except:
|
161 |
print("Error loading file: " + filepath)
|
162 |
continue
|
|
|
163 |
if "lccn" in data.keys():
|
164 |
scan_id = filepath.split('.')[0]
|
165 |
scan_date = filepath.split("_")[0]
|