From: Mike Verdone Date: Mon, 31 May 2010 10:25:57 +0000 (+0200) Subject: Change domain to api.twitter.com for cmdline tool X-Git-Tag: twitter-1.4~8^2~2 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/9c07e54708cf0bda68096b076d803f38b4c3ac07 Change domain to api.twitter.com for cmdline tool --- diff --git a/twitter/cmdline.py b/twitter/cmdline.py index e7a73cb..d722a6a 100644 --- a/twitter/cmdline.py +++ b/twitter/cmdline.py @@ -508,7 +508,8 @@ def main(args=sys.argv[1:]): auth=OAuth( oauth_token, oauth_token_secret, CONSUMER_KEY, CONSUMER_SECRET), secure=options['secure'], - api_version='1') + api_version='1', + domain='api.twitter.com') try: Action()(twitter, options) @@ -516,6 +517,6 @@ def main(args=sys.argv[1:]): print >>sys.stderr, e raise SystemExit(1) except TwitterError, e: - print >> sys.stderr, e.args[0] + print >> sys.stderr, str(e) print >> sys.stderr, "Use 'twitter -h' for help." raise SystemExit(1)