Skip to content
Snippets Groups Projects
Commit 3c312a34 authored by Seblu's avatar Seblu
Browse files

try..cactch in run scripts

parent de1f38bb
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,10 @@ class PackageImage(Image):
# order matter!
l_scripts.sort()
# run scripts
for n_scripts in l_scripts:
arrow(os.path.basename(n_scripts), 2, self.verbose)
s_scripts = self.tarball.get_str(n_scripts)
exec(s_scripts, gl, dict())
try:
for n_scripts in l_scripts:
arrow(os.path.basename(n_scripts), 2, self.verbose)
s_scripts = self.tarball.get_str(n_scripts)
exec(s_scripts, gl, dict())
except Exception as e:
raise Exception("%s fail: %s" % (n_scripts, e))
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