Skip to content

Commit b593d8f

Browse files
Javier-varezmarcan
authored andcommitted
osinstall: Fix m1n1 installation
When installing m1n1, no package needs to be downloaded and the URL cache is None, triggering an exception when close_connection is called on it. Signed-off-by: Javier Alvarez <[email protected]>
1 parent d957158 commit b593d8f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/osinstall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def install(self, stub_ins):
120120
logging.info("OSInstaller.install()")
121121

122122
# Force a reconnect, since the connection is likely to have timed out
123-
self.ucache.close_connection()
123+
if self.ucache is not None:
124+
self.ucache.close_connection()
124125

125126
icon = self.template.get("icon", None)
126127
if icon:

0 commit comments

Comments
 (0)