else:
raise PresentationError(f"Not supported build type: {build_type}")
if ret_code != 0:
- raise PresentationError(u"Not possible to get the number of the "
- u"build number.")
+ raise PresentationError(
+ f"Not possible to get the build number of {job}."
+ )
try:
build_nr = int(build_nr)
return build_nr
except ValueError as err:
raise PresentationError(
- f"Not possible to get the number of the build number. Reason:\n"
+ f"Not possible to get the build number of {job}. Reason:\n"
f"{repr(err)}"
)