mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
add exception
This commit is contained in:
parent
aacf9f0a44
commit
c0b1f57fc0
@ -791,7 +791,7 @@ class Schedule(object):
|
||||
|
||||
log.debug('schedule.handle_func: Removing {0}'.format(proc_fn))
|
||||
os.unlink(proc_fn)
|
||||
except OSError as exc:
|
||||
except Exception as exc:
|
||||
if exc.errno == errno.EEXIST or exc.errno == errno.ENOENT:
|
||||
# EEXIST and ENOENT are OK because the file is gone and that's what
|
||||
# we wanted
|
||||
|
Loading…
Reference in New Issue
Block a user