File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ cdef void pyproj_context_initialize(
173
173
174
174
cdef PJ_CONTEXT* pyproj_context_create(
175
175
network = None ,
176
- ):
176
+ ) except * :
177
177
"""
178
178
Create and initialize the context(s) for pyproj.
179
179
This also manages whether the global context is used.
@@ -182,16 +182,7 @@ cdef PJ_CONTEXT* pyproj_context_create(
182
182
if _USE_GLOBAL_CONTEXT:
183
183
return NULL
184
184
cdef PJ_CONTEXT* context = proj_context_create()
185
- try :
186
- pyproj_context_initialize(
187
- context,
188
- network = network,
189
- )
190
- except DataDirError:
191
- if context != NULL :
192
- proj_context_destroy(context)
193
- context = NULL
194
- raise
185
+ pyproj_context_set_enable_network(context, network = network)
195
186
return context
196
187
197
188
You can’t perform that action at this time.
0 commit comments