Skip to content

Commit

Permalink
[frontend] fix 1314369 - Exception raised when resubmitting Git&Tito …
Browse files Browse the repository at this point in the history
…build
  • Loading branch information
clime committed Mar 3, 2016
1 parent 499ae0a commit b2112ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/logic/builds_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def add(cls, user, pkgs, copr, source_type=None, source_json=None,
repos = copr.repos

# todo: eliminate pkgs and this check
if " " in pkgs or "\n" in pkgs or "\t" in pkgs or pkgs.strip() != pkgs:
if pkgs and (" " in pkgs or "\n" in pkgs or "\t" in pkgs or pkgs.strip() != pkgs):
raise exceptions.MalformedArgumentException("Trying to create a build using src_pkg "
"with bad characters. Forgot to split?")

Expand Down

0 comments on commit b2112ab

Please sign in to comment.