Skip to content

Commit

Permalink
Fix error filename format on parse_collection_filename (#591) (#602)
Browse files Browse the repository at this point in the history
Issue: AAH-203
(cherry picked from commit 4904c4b)

Co-authored-by: Adrian Likins <[email protected]>
Co-authored-by: David Newswanger <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2020
1 parent 1ab65c0 commit f2b316a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/203.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error in error msg when importing invalid filenames
2 changes: 1 addition & 1 deletion galaxy_ng/app/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse_collection_filename(filename):
match = FILENAME_REGEXP.match(filename)

if not match:
msg = "Invalid filename {filename}. Expected format: {namespace}-{name}-{version}.tar.gz"
msg = "Invalid filename {filename}. Expected format: namespace-name-version.tar.gz"
raise ValueError(msg.format(filename=filename))

namespace, name, version = match.groups()
Expand Down

0 comments on commit f2b316a

Please sign in to comment.