examples icon indicating copy to clipboard operation
examples copied to clipboard

Fix get_user auth issue

Open zrnsm opened this issue 11 years ago • 0 comments

This example produces the following when launched in filter mode:

Traceback (most recent call last):
  File "streamwatcher.py", line 91, in <module>
    main()
  File "streamwatcher.py", line 75, in main
    user = tweepy.API().get_user(username)
  File "build/bdist.linux-x86_64/egg/tweepy/binder.py", line 239, in _call
  File "build/bdist.linux-x86_64/egg/tweepy/binder.py", line 189, in execute
tweepy.error.TweepError: Failed to send request: local variable 'auth' referenced before assignment

This seems to be because we're not passing auth when constructing the API.

zrnsm avatar Feb 01 '15 07:02 zrnsm