Merge pull request #839 from theupdateframework/pylint_fix_exception_subscripting

Resolve pylint error: remove outdated exception subscript
This commit is contained in:
Sebastien Awwad 2019-03-26 13:32:19 -04:00 committed by GitHub
commit 58be640faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,9 +390,10 @@ def status(self):
self.repository_name)
self._log_status(self.project_name, signable, self.repository_name)
except securesystemslib.exceptions.Error as e:
signable = e[1]
self._log_status(self.project_name, signable, self.repository_name)
except tuf.exceptions.UnsignedMetadataError as e:
# This error is raised if the metadata has insufficient signatures to
# meet the threshold.
self._log_status(self.project_name, e.signable, self.repository_name)
return
finally: