Skip to content

Commit

Permalink
Fix possible NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Nov 27, 2023
1 parent ab60db1 commit aca8b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reproserver/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def reproduce(self, upload, repo_name=None, repo_url=None):
hosts = web1['config']['hosts']
except KeyError:
pass
ports.update(host['port'] for host in hosts.values())
else:
ports.update(host['port'] for host in hosts.values())

return self.render(
'setup.html',
Expand Down

0 comments on commit aca8b8f

Please sign in to comment.