From c1108109fee69f37892536e11fb47d37a62c260e Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Sat, 26 May 2018 22:51:24 +0300 Subject: [PATCH] Fix undef error --- conflate/conflate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conflate/conflate.py b/conflate/conflate.py index bca2376..29d97de 100755 --- a/conflate/conflate.py +++ b/conflate/conflate.py @@ -943,6 +943,7 @@ class OsmConflator: # First match all objects with ref:whatever tag set count_ref = 0 for k, p in list(self.osmdata.items()): + ref = None if self.ref and self.ref in p.tags: ref = p.tags[self.ref] elif find_ref: