mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove check for unknown repository name
roledb.get_role_paths() contains a check for an unknown repository name that is already done by _check_rolename()
This commit is contained in:
parent
e7de36b2df
commit
58ab40c203
1 changed files with 0 additions and 4 deletions
|
|
@ -886,10 +886,6 @@ def get_role_paths(rolename, repository_name='default'):
|
|||
global _roledb_dict
|
||||
global _dirty_roles
|
||||
|
||||
if repository_name not in _roledb_dict or repository_name not in _dirty_roles:
|
||||
raise securesystemslib.exceptions.InvalidNameError('Repository name does not' ' exist: ' +
|
||||
repository_name)
|
||||
|
||||
roleinfo = _roledb_dict[repository_name][rolename]
|
||||
|
||||
# Paths won't exist for non-target roles.
|
||||
|
|
|
|||
Loading…
Reference in a new issue