mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
handle exceptions in callbacks
This commit is contained in:
parent
4f9001cea4
commit
cca8a27ef9
1 changed files with 4 additions and 1 deletions
|
@ -194,7 +194,10 @@ class RepoMan:
|
|||
del actiondict[act.name]
|
||||
else:
|
||||
# take the later action, but record the former
|
||||
actiondict[act.name].callback(state=0)
|
||||
try:
|
||||
actiondict[act.name].callback(state=0)
|
||||
except:
|
||||
logger.exception('failed to run action %r.', actiondict[act.name])
|
||||
actiondict[act.name] = act
|
||||
toadd = [(x.path, x.callback) for x in actiondict.values() if x.action == 'add']
|
||||
toremove = [(x.name, x.callback) for x in actiondict.values() if x.action == 'remove']
|
||||
|
|
Loading…
Add table
Reference in a new issue