Use a broad catch.

CAL-451 #close Should be fixed in master, please test.
main
Teo Mrnjavac 8 years ago
parent 97c9a7c6e4
commit 1d5aba5e25

@ -59,12 +59,12 @@ def run():
if source_resolv != target_resolv and os.path.exists(source_resolv):
try:
os.remove(target_resolv)
except Error as err:
except Exception as err:
libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err))
try:
shutil.copy(source_resolv, target_resolv)
except Error as err:
except Exception as err:
libcalamares.utils.debug("Can't copy resolv.conf from {}: {}".format(source_resolv, err))
return None

Loading…
Cancel
Save