From ade12a7760b883f7f543430a2cdd2232d61db5ef Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Mon, 18 Dec 2017 06:31:55 -0500 Subject: [PATCH] new version --- setup.py | 2 +- utils/unshrtn.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)