Merge pull request #5311 from mvdbeek/fix_sort_order_tool

Fix string substitution syntax in sort tool action
This commit is contained in:
Martin Cech
2018-01-15 13:04:44 -05:00
committed by GitHub
+1 -1
View File
@@ -2517,7 +2517,7 @@ class SortTool(DatabaseOperationTool):
try:
sorted_elements = [old_elements_dict[line.strip()] for line in open(hda.file_name)]
except KeyError:
hdca_history_name = "%s: %s" (hdca.hid, hdca.name)
hdca_history_name = "%s: %s" % (hdca.hid, hdca.name)
message = "List of element identifiers does not match element identifiers in collection '%s'" % hdca_history_name
raise Exception(message)