Catch potential NullPointerExceptions from hook registry

This commit is contained in:
Alex Goodman 2016-11-04 14:16:57 -07:00
parent bdb584e02b
commit 24f89c63a8

View file

@ -292,7 +292,12 @@ while True :
global_hook = intp.getHook('post_exec_dev')
except:
global_hook = None
user_hook = z.getHook('post_exec')
try:
user_hook = z.getHook('post_exec')
except:
user_hook = None
nhooks = 0
for hook in (global_hook, user_hook):
if hook: