catch all the other errors?
This commit is contained in:
parent
129508a048
commit
23a84595fe
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ def install_jobs(module, user, tmpfile, cron_file):
|
||||||
module.atomic_replace(dest_tmp, cron_file)
|
module.atomic_replace(dest_tmp, cron_file)
|
||||||
except (OSError, IOError), e:
|
except (OSError, IOError), e:
|
||||||
return (1, "", str(e))
|
return (1, "", str(e))
|
||||||
|
except:
|
||||||
|
return (1, "", str(e))
|
||||||
else:
|
else:
|
||||||
return (0, "", "")
|
return (0, "", "")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue