Skip to content

Commit

Permalink
[frontend][forking] fix dumb typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Mar 7, 2016
1 parent 491fa14 commit 7619480
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def group_copr_build_monitor(copr, detailed=False):
@req_with_copr
def copr_fork(copr, dst_group_name=None):
dstgroup = UsersLogic.get_group_by_alias(dst_group_name).first()
if not dstgroup:
if dst_group_name and not dstgroup:
return generic_error("There is no such group: {}".format(dst_group_name))

fcopr = CoprsLogic.get_by_group_id(dstgroup.id, copr.name).first() if dst_group_name \
Expand Down

0 comments on commit 7619480

Please sign in to comment.