Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
aec76e1a
Commit
aec76e1a
authored
2 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
purge project when meta.json is corrupted
parent
6b2fd765
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/__main__.py
+2
-2
2 additions, 2 deletions
jass/__main__.py
with
2 additions
and
2 deletions
jass/__main__.py
+
2
−
2
View file @
aec76e1a
...
...
@@ -5,7 +5,7 @@ import os
import
sys
import
argparse
from
datetime
import
timedelta
,
datetime
from
json
import
JSONDecoder
from
json
import
JSONDecode
Erro
r
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
JSONDecode
Erro
r
as
e
:
print
(
"
removing as meta.json is corrupted (
"
+
str
(
e
)
+
"
)
"
)
else
:
print
(
"
keeping it
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment