File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ pyjlrawtype(::Type{T}) where {T} = get!(PYJLRAWTYPES, T) do
294
294
try
295
295
return _o. __jl_wrap_result (pyjlraw (getproperty (o, k)))
296
296
catch err
297
- if err isa ErrorException && occursin (" has no field" , err. msg)
297
+ if ( err isa UndefVarError) || (err isa ErrorException && occursin (" has no field" , err. msg) )
298
298
throw (PythonRuntimeError (st... ))
299
299
else
300
300
rethrow ()
@@ -318,7 +318,7 @@ pyjlrawtype(::Type{T}) where {T} = get!(PYJLRAWTYPES, T) do
318
318
setproperty! (o, k, v)
319
319
return pynone
320
320
catch err
321
- if err isa ErrorException && occursin (" has no field" , err. msg)
321
+ if ( err isa UndefVarError) || (err isa ErrorException && occursin (" has no field" , err. msg) )
322
322
throw (PythonRuntimeError (st... ))
323
323
else
324
324
rethrow ()
You can’t perform that action at this time.
0 commit comments