1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- avoid crashes for requests without repository target

This commit is contained in:
Adrian Schröter 2012-11-20 15:29:30 +01:00
parent 7353cf99d7
commit ada0c02f92

View File

@ -2406,7 +2406,7 @@ class Request:
format an action depending on the action's type.
A dict which contains the formatted str's is returned.
"""
def prj_pkg_join(prj, pkg, repository):
def prj_pkg_join(prj, pkg, repository=None):
if not pkg:
if not repository:
return prj or ''