diff --git a/CHANGES/203.bugfix b/CHANGES/203.bugfix new file mode 100644 index 0000000000..2fadb5fac2 --- /dev/null +++ b/CHANGES/203.bugfix @@ -0,0 +1 @@ +Fix error in error msg when importing invalid filenames diff --git a/galaxy_ng/app/api/utils.py b/galaxy_ng/app/api/utils.py index aef5f78384..08c70b1c80 100644 --- a/galaxy_ng/app/api/utils.py +++ b/galaxy_ng/app/api/utils.py @@ -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()