From 679a2c390ff98a45b9aa5455da91e59ca24f48fd Mon Sep 17 00:00:00 2001 From: Asher Edwards Date: Mon, 13 Jan 2025 16:41:41 -0700 Subject: [PATCH] Fixed nm.py crashing installer when network card id has special characters --- ubiquity/nm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubiquity/nm.py b/ubiquity/nm.py index f44e4fab1..91ce61ec3 100644 --- a/ubiquity/nm.py +++ b/ubiquity/nm.py @@ -40,7 +40,7 @@ def get_vendor_and_model(udi): with open('/dev/null', 'w') as devnull: out = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=devnull, - universal_newlines=True) + universal_newlines=True, errors='replace') out = out.communicate() if not out[1]: for prop in out[0].split('\n'):