Skip to content

Commit

Permalink
Split Code Up Into 2 Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrnocswift committed Dec 10, 2014
1 parent 26baf24 commit d67c8db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def call():
from_value = request.values.get('From')
to = request.values.get('To')
if not (from_value and to):
return str(resp.say("Invalid request"))
resp.say("Invalid request")
return str(resp)
from_client = from_value.startswith('client')
caller_id = os.environ.get("CALLER_ID", CALLER_ID)
if not from_client:
Expand Down

0 comments on commit d67c8db

Please sign in to comment.