1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00
This commit is contained in:
Adrian Schröter 2010-05-26 16:46:01 +02:00
parent e759edebde
commit 4c168a2428

View File

@ -4977,7 +4977,7 @@ def get_user_projpkgs(apiurl, user, role=None, exclude_projects=[], proj=True, p
try:
res = search(apiurl, **what)
except urllib2.HTTPError, e:
if e.code != 400 or not role_filter:
if e.code != 400 or not role_filter_xpath:
raise e
# backward compatibility: local role filtering
what = dict([[kind, role_filter_xpath] for kind in what.keys()])