Skip to content

Commit 4e1c5cc

Browse files
committed
Silly error checking.
1 parent bc19a90 commit 4e1c5cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
VERSION = '0.1.2'
5+
VERSION = '0.1.3'
66
LONG_DESC = """\
77
A python wrapper to the USPS api, currently only supports address validation
88
"""

usps/addressinformation/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def submit_xml(self, xml):
5757
if root.tag == 'Error':
5858
raise USPSXMLError(root)
5959
error = root.find('.//Error')
60-
if len(error):
60+
if error is None:
6161
raise USPSXMLError(error)
6262
return root
6363

0 commit comments

Comments
 (0)