diff --git a/gtfs_loader/lat_lon.py b/gtfs_loader/lat_lon.py index 131cdf7..6e55e13 100644 --- a/gtfs_loader/lat_lon.py +++ b/gtfs_loader/lat_lon.py @@ -71,6 +71,8 @@ def distance_to_segment(x, l1, l2): return LatLon.EARTH_RADIUS_M * min(d_l1_x, d_l2_x) def __eq__(self, other): + if other == None: + return False return self.lat == other.lat and self.lon == other.lon def __hash__(self): diff --git a/setup.py b/setup.py index c97d12b..3a88cdc 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='py-gtfs-loader', - version='0.1.14', + version='0.1.15', description='Load GTFS', url='https://github.com/TransitApp/py-gtfs-loader', author='Nicholas Paun, Jonathan Milot',