Skip to content

Commit 50ef141

Browse files
j-fuCopilot
andauthored
Use more specific error analysis when detecting license situation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cca181e commit 50ef141

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Pardiso.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ function panua_is_licensed()
130130
PARDISO_LICENSED[] = true
131131
return true
132132
catch e
133-
return false
133+
if isa(e, ErrorException) && occursin(r"(?i)licen[cs]e|unlicensed|not licensed", e.msg)
134+
return false
135+
else
136+
rethrow(e)
137+
end
134138
end
135139
end
136140
end

0 commit comments

Comments
 (0)