deploy: ensure progress is instantiated before trying to use it

This commit is contained in:
Hans-Christoph Steiner 2022-06-28 15:32:16 +02:00
parent 355afe2e69
commit cb45764a07

View file

@ -453,9 +453,10 @@ def update_servergitmirrors(servergitmirrors, repo_section):
| git.remote.PushInfo.REMOTE_FAILURE | git.remote.PushInfo.REMOTE_FAILURE
| git.remote.PushInfo.REMOTE_REJECTED): | git.remote.PushInfo.REMOTE_REJECTED):
# Show potentially useful messages from git remote # Show potentially useful messages from git remote
for line in progress.other_lines: if progress:
if line.startswith('remote:'): for line in progress.other_lines:
logging.debug(line) if line.startswith('remote:'):
logging.debug(line)
raise FDroidException(remote.url + ' push failed: ' + str(pushinfo.flags) raise FDroidException(remote.url + ' push failed: ' + str(pushinfo.flags)
+ ' ' + pushinfo.summary) + ' ' + pushinfo.summary)
else: else: