From aca8b8f9255281a1a886d54d5327bda96da2f179 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Mon, 27 Nov 2023 11:47:41 -0500 Subject: [PATCH] Fix possible NameError --- reproserver/web/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reproserver/web/views.py b/reproserver/web/views.py index f8498fa..e01c7d4 100644 --- a/reproserver/web/views.py +++ b/reproserver/web/views.py @@ -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',