diff --git a/src/modules/networkcfg/main.py b/src/modules/networkcfg/main.py index 1033b9f02..d3c27ec48 100644 --- a/src/modules/networkcfg/main.py +++ b/src/modules/networkcfg/main.py @@ -60,11 +60,11 @@ def run(): try: os.remove(target_resolv) except Error as err: - libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err)) - + libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err)) + try: shutil.copy(source_resolv, target_resolv) except Error as err: - + libcalamares.utils.debug("Can't copy resolv.conf from {}: {}".format(source_resolv, err)) + libcalamares.utils.debug("Can't copy resolv.conf from {}: {}".format(source_resolv, err)) return None