Skip to content
Snippets Groups Projects
Commit aec76e1a authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

purge project when meta.json is corrupted

parent 6b2fd765
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import os
import sys
import argparse
from datetime import timedelta, datetime
from json import JSONDecoder
from json import JSONDecodeError
import uvicorn
......@@ -177,7 +177,7 @@ def w_clean_project_data(args):
print("removing its large files")
else:
print("large files already removed")
except JSONDecoder as e:
except JSONDecodeError as e:
print("removing as meta.json is corrupted (" + str(e) + ")")
else:
print("keeping it")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment