Skip to content
Snippets Groups Projects
Commit 485000a1 authored by Sandro Tosi's avatar Sandro Tosi
Browse files

roundup: show the full URL when raising exceptions

parent d62c6431
No related branches found
No related tags found
No related merge requests found
Pipeline #31043 passed with stage
in 1 minute and 28 seconds
......@@ -53,12 +53,12 @@ class RoundupData:
def __init__(self, uri, id):
# to uri is the real 'uri' with '/issueNNNNN' added, we need "real uri"
uri_re = re.compile(r'(.*)/issue(.*)')
uri = uri_re.match(uri).group(1)
real_uri = uri_re.match(uri).group(1)
self.id = id or failwith(uri, "Roundup: no id")
self.status = self.getStatus(uri, id) or failwith(uri, "Roundup", exn=NoStatusExn)
self.resolution = self.getResolution(uri, id)
self.status = self.getStatus(real_uri, id) or failwith(uri, "Roundup", exn=NoStatusExn)
self.resolution = self.getResolution(real_uri, id)
# NOT SUPPORTED YET
#if self.status == 'Duplicate':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment