diff --git a/src/smyth/dispatcher/dispatcher.py b/src/smyth/dispatcher/dispatcher.py index 8f195d4..b1d72df 100644 --- a/src/smyth/dispatcher/dispatcher.py +++ b/src/smyth/dispatcher/dispatcher.py @@ -76,7 +76,7 @@ def build_process_groups( return process_groups def get_process_definition(self, path: str) -> ProcessDefinition: - for path, process_def in self.process_definitions.items(): + for process_def in self.process_definitions.values(): if process_def.url_path.match(path): return process_def raise ProcessDefinitionNotFoundError(