Synchronising MPA branch with compromise branch where possible.
This commit is contained in:
@@ -114,11 +114,21 @@ def safeCommand(cmd):
|
||||
""" Execute a command with some arguments. Safe cross-platform
|
||||
version, I hope. """
|
||||
|
||||
p = Popen(cmd, shell=getShell())
|
||||
sts = p.wait()
|
||||
try:
|
||||
p = Popen(cmd, shell=getShell())
|
||||
sts = p.wait()
|
||||
except KeyboardInterrupt, EnvironmentError:
|
||||
raise
|
||||
except:
|
||||
print "Wile processing [%s] we had an" % (cmd)
|
||||
print "unexpected error:", sys.exc_info()[0]
|
||||
print
|
||||
sts = -1
|
||||
raise # For now still raise
|
||||
|
||||
return sts
|
||||
|
||||
|
||||
def panic(text):
|
||||
"""
|
||||
Errors that occur before we even are sure about wxPython etc. are dumped
|
||||
|
||||
Reference in New Issue
Block a user