We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233a1c6 commit e3381e1Copy full SHA for e3381e1
src/RobotOS.jl
@@ -31,9 +31,11 @@ function __init__()
31
try
32
copy!(__rospy__, pyimport("rospy"))
33
catch ex
34
- if (isa(ex, PyCall.PyError) &&
35
- pycall(pybuiltin("str"), PyAny, ex.val) == "No module named rospy")
36
- error("rospy not found!\nHas an environment setup script been run?")
+ if (isa(ex, PyCall.PyError) && ex.T.__name__ == "ModuleNotFoundError")
+ @error """
+ Unable to load the 'rospy' python package!
37
+ Has an environment setup script been run?
38
+ """
39
else
40
rethrow(ex)
41
end
0 commit comments