From c44e6d80d248241977c45cefaee57d602c1d28bd Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Thu, 8 Aug 2013 17:11:07 -0400 Subject: [PATCH] Fix argument parsing for Twitter bots. Even though we support a command-line option of --user=, it gets stored in a field called 'email'. (imported from commit f2956524517a93187ed182caf8e2d85ccbc1a0f4) --- demos/twitter-bot | 2 +- demos/twitter-search-bot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/twitter-bot b/demos/twitter-bot index aab020d..0385de8 100755 --- a/demos/twitter-bot +++ b/demos/twitter-bot @@ -102,7 +102,7 @@ except ConfigParser.NoOptionError: user_id = options.twitter_id client = zulip.Client( - email=options.user, + email=options.email, api_key=options.api_key, site=options.site, verbose=True) diff --git a/demos/twitter-search-bot b/demos/twitter-search-bot index c8f81c7..ea3ca1e 100755 --- a/demos/twitter-search-bot +++ b/demos/twitter-search-bot @@ -119,7 +119,7 @@ Please double-check and try again." sys.exit() client = zulip.Client( - email=opts.user, + email=opts.email, api_key=opts.api_key, site=opts.site, verbose=True)