Skip to content

Commit

Permalink
Fix error filename format on parse_collection_filename (#591)
Browse files Browse the repository at this point in the history
Issue: AAH-203
(cherry picked from commit 4904c4b)
  • Loading branch information
alikins authored and Patchback committed Dec 10, 2020
1 parent e172cfe commit 8a467a0
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 8a467a0

Please sign in to comment.