Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Update sms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joneug committed Oct 8, 2020
1 parent aa00832 commit cfe6db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def readme():
"Operating System :: POSIX :: Linux",
],
python_requires=' >= 3.5',
version='0.1.8',
version='0.1.9',
license='MIT',
install_requires=[
"falcon >= 2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sms_gateway/controllers/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def on_post(self, req, resp):

# Check whitelist
pattern = re.compile(config.WHITELIST)
if pattern.match(number):
if not pattern.match(number):
raise falcon.HTTPBadRequest(
'Number not allowed',
f"The number '{number}' is not allowed. Check your whitelist configuration."
Expand Down

0 comments on commit cfe6db9

Please sign in to comment.