Skip to content

Commit

Permalink
Merge pull request #6 from LoyVanBeek/patch-1
Browse files Browse the repository at this point in the history
RuntimeError instead of non-existent Error
  • Loading branch information
wolfv committed Apr 8, 2019
2 parents df39a9c + d5599da commit ccf176c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyros/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def subscribe(topic, msg_type, callback):
"""

if subscriber_registry.get(topic):
raise Error("Already registerd...")
raise RuntimeError("Already registerd...")

out = widgets.Output(layout={'border': '1px solid gray'})
subscriber_registry[topic] = rospy.Subscriber(topic, msg_type, callback)
Expand All @@ -68,4 +68,4 @@ def stop_start_subscriber(x):
btn.on_click(stop_start_subscriber)
btns = widgets.HBox((btn, ))
vbox = widgets.VBox((btns, out))
return vbox
return vbox

0 comments on commit ccf176c

Please sign in to comment.