Fix string substitution syntax

This commit is contained in:
mvdbeek
2018-01-15 17:40:43 +01:00
parent a2f8ff21fd
commit e7b98dff47
+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)