mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Use a broad catch.
CAL-451 #close Should be fixed in master, please test.
This commit is contained in:
parent
97c9a7c6e4
commit
1d5aba5e25
1 changed files with 2 additions and 2 deletions
|
@ -59,12 +59,12 @@ def run():
|
||||||
if source_resolv != target_resolv and os.path.exists(source_resolv):
|
if source_resolv != target_resolv and os.path.exists(source_resolv):
|
||||||
try:
|
try:
|
||||||
os.remove(target_resolv)
|
os.remove(target_resolv)
|
||||||
except Error as err:
|
except Exception as err:
|
||||||
libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err))
|
libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shutil.copy(source_resolv, target_resolv)
|
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))
|
libcalamares.utils.debug("Can't copy resolv.conf from {}: {}".format(source_resolv, err))
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue