mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Fixed #15609 -- Fixed some 'raise' statements to use the newer style syntax. Thanks, DaNmarner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -37,6 +37,6 @@ def check_err(code):
|
||||
return
|
||||
elif code in OGRERR_DICT:
|
||||
e, msg = OGRERR_DICT[code]
|
||||
raise e, msg
|
||||
raise e(msg)
|
||||
else:
|
||||
raise OGRException('Unknown error code: "%s"' % code)
|
||||
|
||||
Reference in New Issue
Block a user