mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed flake8 2.6 warnings.
This commit is contained in:
parent
96f97691ad
commit
ea34426ae7
4 changed files with 14 additions and 16 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue