Skip to content

Commit

Permalink
Add traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 17, 2018
1 parent b52ecc5 commit 64af45a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion postprocess
Expand Up @@ -14,6 +14,7 @@ import re
import shutil
import subprocess
import time
import traceback
import yaml


Expand Down Expand Up @@ -221,11 +222,15 @@ while True:
with open(os.path.join(root_folder, 'error.yaml'), 'w') as error_file:
error_file.write(yaml.dump({
'subproceesserror': e,
'traceback': traceback.format_exc().split('\n'),
}))
except Exception as e:
print(e)
with open(os.path.join(root_folder, 'error.yaml'), 'w') as error_file:
error_file.write(yaml.dump({'error': e}))
error_file.write(yaml.dump({
'error': e,
'traceback': traceback.format_exc().split('\n'),
}))

# try:
# if os.path.exists(root_folder):
Expand Down

0 comments on commit 64af45a

Please sign in to comment.