PAL: Dislpay job name in err msg
[csit.git] / resources / tools / presentation / specification_parser.py
index 302ce03..0199796 100644 (file)
@@ -314,7 +314,7 @@ class Specification:
             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)}"
             )
 
@@ -535,7 +535,7 @@ class Specification:
                     except ValueError:
                         # defined as a range <start, build_type>
                         build_end = self._get_build_number(job, build_end)
-                    builds = [x for x in range(builds[u"start"], build_end + 1)]
+                    builds = list(range(builds[u"start"], build_end + 1))
                     if max_builds and max_builds < len(builds):
                         builds = builds[-max_builds:]
                     if reverse: