catch all the other errors?

This commit is contained in:
Seth Vidal 2013-04-16 18:19:45 +00:00
parent 129508a048
commit 23a84595fe

View file

@ -152,6 +152,8 @@ def install_jobs(module, user, tmpfile, cron_file):
module.atomic_replace(dest_tmp, cron_file)
except (OSError, IOError), e:
return (1, "", str(e))
except:
return (1, "", str(e))
else:
return (0, "", "")