Trace failures of set_unit_status()
Closes-Bug: #1878221 Change-Id: I9a741d51fb2bab7be12fd0496af6a18bbddd1709
This commit is contained in:
parent
d860f3406c
commit
c30f8a8e19
|
@ -20,6 +20,7 @@ import os
|
|||
import shutil
|
||||
import socket
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
_path = os.path.dirname(os.path.realpath(__file__))
|
||||
_root = os.path.abspath(os.path.join(_path, '..'))
|
||||
|
@ -660,4 +661,8 @@ if __name__ == '__main__':
|
|||
hooks.execute(sys.argv)
|
||||
except UnregisteredHookError as e:
|
||||
log('Unknown hook {} - skipping.'.format(e), level=DEBUG)
|
||||
set_unit_status()
|
||||
try:
|
||||
set_unit_status()
|
||||
except:
|
||||
log(traceback.format_exc(), level=ERROR)
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue