Skip to content

Commit

Permalink
patch bug for empty url
Browse files Browse the repository at this point in the history
  • Loading branch information
lopatovsky committed Oct 18, 2016
1 parent e833e5b commit 27e6867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter_wall.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def prepare_data( r ):
@app.route('/')
@app.route('/<word>/')
def index(word=None):
r=None
data=None
if word:
session = twitter_session( *get_secrets( 'auth.cfg' ) )
r = session.get('https://api.twitter.com/1.1/search/tweets.json',
Expand Down

0 comments on commit 27e6867

Please sign in to comment.