X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fspecification_parser.py;h=5a88a7ba0dae82bca8ed237e839c6fc4021a7b69;hp=37b26eb0d59f86db38da4cacd4002dcd95f7f370;hb=7bcbdcb30d2eea8fe7e1fb60696e39abef897920;hpb=48cd54ff00049d58494834d25d3f0ac846ce4017 diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py index 37b26eb0d5..5a88a7ba0d 100644 --- a/resources/tools/presentation/specification_parser.py +++ b/resources/tools/presentation/specification_parser.py @@ -307,14 +307,15 @@ class Specification: 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)}" )