init usages variable, for the case that there's no usage

This commit is contained in:
jesopo 2020-02-03 10:37:27 +00:00
parent 30aadda093
commit b713cf7659

View file

@ -10,6 +10,7 @@ class Module(ModuleManager.BaseModule):
spec = hook.get_kwargs("spec") spec = hook.get_kwargs("spec")
usages_kwarg = hook.get_kwargs("usage") usages_kwarg = hook.get_kwargs("usage")
usages = []
if spec: if spec:
if is_channel: if is_channel:
context = utils.parse.SpecArgumentContext.CHANNEL context = utils.parse.SpecArgumentContext.CHANNEL