Skip to content

Commit 025c67f

Browse files
committed
backend inventory CHANGE remove file from the inventory if it contains invalid schema
1 parent 3f3fac8 commit 025c67f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def schemas_update(path):
154154
except:
155155
pass
156156
except:
157+
os.remove(schemapath)
157158
continue
158159

159160
#store the list

0 commit comments

Comments
 (0)