From 214f4d2183bc633c8130d7d358a0dbbdc92fafe6 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 15 Nov 2021 14:31:08 +0100 Subject: add missing variable assignment --- src/pydrilla/pydrilla.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pydrilla/pydrilla.py b/src/pydrilla/pydrilla.py index b5513b9..7300198 100644 --- a/src/pydrilla/pydrilla.py +++ b/src/pydrilla/pydrilla.py @@ -481,6 +481,7 @@ class Content: for mapping in self.all_items(self.mappings): for payload in mapping['payloads']: + pattern = payload['pattern'] try: MappingItem(pattern, mapping)\ .register(self.patterns_by_proto) -- cgit v1.2.3