diff --git a/swh/model/identifiers.py b/swh/model/identifiers.py index 083efd4504c7dbad38a26d4e9aaa50e7369ba650..e7508ebcbbb4fbe05d1a5610725a2412750498ea 100644 --- a/swh/model/identifiers.py +++ b/swh/model/identifiers.py @@ -591,8 +591,8 @@ def snapshot_identifier(snapshot, *, ignore_unresolved=False): if unresolved and not ignore_unresolved: raise ValueError('Branch aliases unresolved: %s' % - ', '.join('%s -> %s' % (name, target) - for name, target in unresolved)) + ', '.join('%s -> %s' % x for x in unresolved), + unresolved) return identifier_to_str(hash_git_data(b''.join(lines), 'snapshot'))