Skip to content

Commit

Permalink
Fix template string for AttrList{In|Ex}cludes.__repr__
Browse files Browse the repository at this point in the history
These classes were based on `AttrFilter` and `AttrExclude` but don't
have the `exact_match` property. So the template string in their __repr__
method was causing a crash. It only comes up if you try to get the
string representation of a geocoder object, so pretty much only while
debugging, but it's a bit confusing and unhelpful when it happens.
  • Loading branch information
KlaasH committed Oct 31, 2019
1 parent dc4aa52 commit c7a3240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omgeo/postprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def process(self, candidates):
for gv in self.good_values)]

def __repr__(self):
return '<%s: %s %s in %s>' % \
return '<%s: %s in %s>' % \
(self.__class__.__name__, self.attr, self.good_values)


Expand All @@ -379,7 +379,7 @@ def process(self, candidates):
for bv in self.bad_values)]

def __repr__(self):
return '<%s: %s %s in %s>' % \
return '<%s: %s in %s>' % \
(self.__class__.__name__, self.attr, self.bad_values)


Expand Down

0 comments on commit c7a3240

Please sign in to comment.