summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-11-20 19:55:47 +0100
committerWojtek Kosior <koszko@koszko.org>2021-11-20 19:55:47 +0100
commit67631e6c5db6739f7a57958d222e5af7ebc364b0 (patch)
tree4c138e7858c9f45fb2676ff1def780b8cd6a3598
parent92d0f3a1123c64a6a19b7e442f7a48db42f03ecf (diff)
downloadhaketilo-hydrilla-67631e6c5db6739f7a57958d222e5af7ebc364b0.tar.gz
haketilo-hydrilla-67631e6c5db6739f7a57958d222e5af7ebc364b0.zip
fix 'referenced before assignment' error
-rw-r--r--src/pydrilla/pydrilla.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pydrilla/pydrilla.py b/src/pydrilla/pydrilla.py
index 20c2801..d7aef76 100644
--- a/src/pydrilla/pydrilla.py
+++ b/src/pydrilla/pydrilla.py
@@ -254,6 +254,7 @@ class PatternTreeNode:
just created).
'''
node = self
+ segment = None
for segment in segments:
wildcards = node.wildcard_matches