Commit c454e065 authored by Joshua Roesslein's avatar Joshua Roesslein

Fix for python 2.4. Release 1.7.1.

parent 1bfc3913
......@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(name="tweepy",
version="1.7",
version="1.7.1",
description="Twitter library for python",
license="MIT",
author="Joshua Roesslein",
......
......@@ -5,7 +5,7 @@
"""
Tweepy Twitter API library
"""
__version__ = '1.7'
__version__ = '1.7.1'
__author__ = 'Joshua Roesslein'
__license__ = 'MIT'
......
......@@ -46,7 +46,10 @@ class JSONParser(Parser):
def parse_error(self, payload):
error = self.json_lib.loads(payload)
return error['error'] if error.has_key('error') else error['errors']
if error.has_key('error'):
return error['error']
else:
return error['errors']
class ModelParser(JSONParser):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment