Skip to content

Commit 21a7088

Browse files
authored
Merge pull request #85 from jdlangs/v0.7.2
Updates to make new registered versions go through automatically
2 parents 233a1c6 + b36f904 commit 21a7088

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name = "RobotOS"
22
uuid = "22415677-39a4-5241-a37a-00beabbbdae8"
3-
version = "0.8.0"
3+
version = "0.7.2"
44

55
[deps]
66
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
77

88
[compat]
9-
PyCall = "≥ 1.90.0"
10-
julia = "1"
9+
PyCall = "1"
10+
julia = "1"
1111

1212
[extras]
1313
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/RobotOS.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ function __init__()
3131
try
3232
copy!(__rospy__, pyimport("rospy"))
3333
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?")
34+
if (isa(ex, PyCall.PyError) && ex.T.__name__ == "ModuleNotFoundError")
35+
@error """
36+
Unable to load the 'rospy' python package!
37+
Has an environment setup script been run?
38+
"""
3739
else
3840
rethrow(ex)
3941
end

0 commit comments

Comments
 (0)