diff --git a/setup.py b/setup.py index b461fca6..76ffa9a1 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup # Also in twarc.py -__version__ = '1.3.3' +__version__ = '1.3.4' if sys.version_info[0] < 3: dependencies = open(join('requirements', 'python2.txt')).read().split() diff --git a/utils/unshrtn.py b/utils/unshrtn.py index 6abeb9ac..5fd8d399 100755 --- a/utils/unshrtn.py +++ b/utils/unshrtn.py @@ -70,7 +70,7 @@ def rewrite_line(line): # finally assign the long url, giving preference to a # canonical url if one was found - if resp and resp['long']: + if resp and 'long' in resp: url_dict['unshortened_url'] = resp['canonical'] or resp['long'] return json.dumps(tweet)