mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Do not store exception message in a variable
This commit is contained in:
parent
202c74dc48
commit
ea886ac9f5
1 changed files with 4 additions and 3 deletions
|
|
@ -217,9 +217,10 @@ def should_write():
|
|||
roleinfo = tuf.roledb.get_roleinfo(rolename)
|
||||
roleinfo['version'] = current_version
|
||||
tuf.roledb.update_roleinfo(rolename, roleinfo)
|
||||
|
||||
message = 'Not enough signatures for ' + repr(metadata_filename)
|
||||
raise tuf.UnsignedMetadataError(message, signable)
|
||||
|
||||
# Note that 'signable' is an argument to tuf.UnsignedMetadataError().
|
||||
raise tuf.UnsignedMetadataError('Not enough signatures'
|
||||
' for ' + repr(metadata_filename), signable)
|
||||
|
||||
# 'rolename' is a delegated role or a top-level role that is partially
|
||||
# signed, and thus its signatures shouldn't be verified.
|
||||
|
|
|
|||
Loading…
Reference in a new issue