mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Continue to attack E302 violations
This commit is contained in:
@@ -3,16 +3,20 @@
|
||||
check_err() routine which checks the status code returned by
|
||||
OGR methods.
|
||||
"""
|
||||
|
||||
#### OGR & SRS Exceptions ####
|
||||
class GDALException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class OGRException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class SRSException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class OGRIndexError(OGRException, KeyError):
|
||||
"""
|
||||
This exception is raised when an invalid index is encountered, and has
|
||||
@@ -37,6 +41,7 @@ OGRERR_DICT = {
|
||||
}
|
||||
OGRERR_NONE = 0
|
||||
|
||||
|
||||
def check_err(code):
|
||||
"Checks the given OGRERR, and raises an exception where appropriate."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user