Fixed flake8 2.6 warnings.

This commit is contained in:
Tim Graham 2016-06-16 09:07:51 -04:00
parent 96f97691ad
commit ea34426ae7
4 changed files with 14 additions and 16 deletions

View file

@ -40,14 +40,14 @@ class SpatialRefSysMixin(object):
try:
self._srs = gdal.SpatialReference(self.wkt)
return self.srs
except Exception as msg:
pass
except Exception as e:
msg = e
try:
self._srs = gdal.SpatialReference(self.proj4text)
return self.srs
except Exception as msg:
pass
except Exception as e:
msg = e
raise Exception('Could not get OSR SpatialReference from WKT: %s\nError:\n%s' % (self.wkt, msg))
else: