diff --git a/src/opnsense/service/modules/processhandler.py b/src/opnsense/service/modules/processhandler.py index 715a2c1ce..82f1ac2ef 100644 --- a/src/opnsense/service/modules/processhandler.py +++ b/src/opnsense/service/modules/processhandler.py @@ -307,7 +307,7 @@ class ActionHandler(object): :return: action object or None if not found """ target = self.action_map - while type(target) is dict and action[0] in target: + while type(target) is dict and len(action) > 0 and action[0] in target: tmp = action.pop(0) target = target[tmp]