1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

attribute_branch_pkg: raise APIError instead of string

This commit is contained in:
Michal Vyskocil 2010-04-08 11:24:13 +02:00
parent 95ec7dee7b
commit 6d23985829

View File

@ -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]