1
0
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:
Alex Gaynor
2013-11-02 10:18:46 -07:00
parent 8b3d9d96ed
commit 19256f300e
67 changed files with 171 additions and 2 deletions

View File

@@ -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."