Added additional debug on error in selected profiles
This commit is contained in:
parent
15e68ef49d
commit
67cdc89002
|
|
@ -3,6 +3,7 @@ import archinstall
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
import traceback
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
# TODO: Learn the dark arts of argparse...
|
# TODO: Learn the dark arts of argparse...
|
||||||
|
|
@ -64,6 +65,7 @@ def run_as_a_module():
|
||||||
exec(profile) # Is this is very safe?
|
exec(profile) # Is this is very safe?
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(f"Error in profile {sys.argv[1]}: {err}")
|
print(f"Error in profile {sys.argv[1]}: {err}")
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
sys.exit(1) # Should prompt for another profile path instead
|
sys.exit(1) # Should prompt for another profile path instead
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue