Improve exception handling

#1105
This commit is contained in:
ViperMaul 2015-05-11 00:34:32 -07:00
parent 46cabb14ad
commit cf6846dac2

View File

@ -564,9 +564,8 @@ def version_stamp_pboprefix(module,commitID):
else:
os.remove(os.path.join(work_drive, prefix, module, "$PBOPREFIX$"))
os.rename(os.path.join(work_drive, prefix, module, "$PBOPREFIX$.backup"), os.path.join(work_drive, prefix, module, "$PBOPREFIX$"))
except:
print_error("Failed to include build number")
raise
except Exception as e:
print_error("Failed to include build number: {}".format(e))
return False
return True