Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -157,8 +157,11 @@ def main():
|
|
157 |
json.dump({}, f)
|
158 |
|
159 |
with open("history.json", "r") as f:
|
160 |
-
|
161 |
-
|
|
|
|
|
|
|
162 |
# Handling URL submission
|
163 |
if url:
|
164 |
subdir = hashlib.md5(url.encode()).hexdigest()
|
|
|
157 |
json.dump({}, f)
|
158 |
|
159 |
with open("history.json", "r") as f:
|
160 |
+
try:
|
161 |
+
history = json.load(f)
|
162 |
+
except:
|
163 |
+
print('error')
|
164 |
+
|
165 |
# Handling URL submission
|
166 |
if url:
|
167 |
subdir = hashlib.md5(url.encode()).hexdigest()
|