Commit da3a6b80 authored by okhin's avatar okhin 🚴

groupdict is not a subscriptable object

parent 60ec4d1a
...@@ -159,7 +159,7 @@ def sanitize_phonenumber(number): ...@@ -159,7 +159,7 @@ def sanitize_phonenumber(number):
groups = re.match(bl_re, number) groups = re.match(bl_re, number)
if groups is not None: if groups is not None:
# We matched, so we're blacklisted # We matched, so we're blacklisted
raise ValueError('{} is blacklisted. Reason: {}', (number, groups.groupdict().keys[0],)) raise ValueError('{} is blacklisted. Reason: {}', (number, groups.groupdict.keys[0],))
return number return number
@asyncio.coroutine @asyncio.coroutine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment