Skip to content

Commit 7063a85

Browse files
sir-sigurdtimgraham
authored andcommitted
Fixed #27960 -- Set errcheck=False for GDALAllRegister to prevent crash.
GDALAllRegister returns void so errcheck is not needed.
1 parent 3d19d14 commit 7063a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/contrib/gis/gdal/prototypes/raster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
double_output = partial(double_output, cpl=True)
2222

2323
# Raster Driver Routines
24-
register_all = void_output(std_call('GDALAllRegister'), [])
24+
register_all = void_output(std_call('GDALAllRegister'), [], errcheck=False)
2525
get_driver = voidptr_output(std_call('GDALGetDriver'), [c_int])
2626
get_driver_by_name = voidptr_output(std_call('GDALGetDriverByName'), [c_char_p], errcheck=False)
2727
get_driver_count = int_output(std_call('GDALGetDriverCount'), [])

0 commit comments

Comments
 (0)