Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-sip
Commits
60ec4d1a
Commit
60ec4d1a
authored
Apr 19, 2017
by
okhin
Browse files
Fixing the Exception name to a correct one
parent
8f5397c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
60ec4d1a
...
...
@@ -159,7 +159,7 @@ def sanitize_phonenumber(number):
groups
=
re
.
match
(
bl_re
,
number
)
if
groups
is
not
None
:
# We matched, so we're blacklisted
raise
ValueE
xception
(
'{} is blacklisted. Reason: {}'
,
(
number
,
groups
.
groupdict
().
keys
[
0
],))
raise
ValueE
rror
(
'{} is blacklisted. Reason: {}'
,
(
number
,
groups
.
groupdict
().
keys
[
0
],))
return
number
@
asyncio
.
coroutine
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment