mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 11:42:12 +01:00
attribute_branch_pkg: raise APIError instead of string
This commit is contained in:
parent
95ec7dee7b
commit
6d23985829
@ -3279,8 +3279,7 @@ def attribute_branch_pkg(apiurl, attribute, maintained_update_project_attribute,
|
||||
msg = ''.join(e.readlines())
|
||||
msg = msg.split('<summary>')[1]
|
||||
msg = msg.split('</summary>')[0]
|
||||
m = re.match(r"attribute branch call failed: (\S+)/", msg)
|
||||
return m
|
||||
raise oscerr.APIError(msg)
|
||||
|
||||
r = f.read()
|
||||
r = r.split('targetproject">')[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user