Skip to content
Snippets Groups Projects
Commit 43c323be authored by Hartung, Michael's avatar Hartung, Michael
Browse files

css prefix: try to parse again after cleanup if first parsing fails

parent ae76140d
No related branches found
No related tags found
No related merge requests found
......@@ -51,3 +51,6 @@ package-lock.jsondrugsTone-build
.ipynb_checkpoints/
*.ipynb
# temp dir for css prefixing
original/*
......@@ -378,7 +378,6 @@ def parse():
buildManager.buildDevDir()
buildManager.parseApp()
except:
buildManager.cleanup()
raise Exception('ERROR: CSS prefix script failed.')
print('Parsing done!')
......@@ -400,7 +399,16 @@ if __name__ == '__main__':
raise Exception('Value for --stage is missing.')
if args.stage == 'parse':
parse()
try:
parse()
except:
# in case it fails, try again after running a cleanup
cleanup()
try:
parse()
except:
cleanup()
elif args.stage == 'cleanup':
cleanup()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment