diff --git a/tuf/developer_tool.py b/tuf/developer_tool.py index 613906fc4c..8629a8ae99 100755 --- a/tuf/developer_tool.py +++ b/tuf/developer_tool.py @@ -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: