Merge "Handle if "TRUNK_SKELETON" is not loaded"

This commit is contained in:
Zuul 2022-12-27 09:28:47 +00:00 committed by Gerrit Code Review
commit ca2a06a597

View File

@ -105,4 +105,7 @@ def init_handler(resource, event, trigger, payload=None):
def unregister():
"""Cleanup fanout queues"""
global TRUNK_SKELETON
TRUNK_SKELETON.unregister()
try:
TRUNK_SKELETON.unregister()
except AttributeError:
pass