Skip to content

Commit

Permalink
Tools: use isintance instead of type at extract_data
Browse files Browse the repository at this point in the history
  • Loading branch information
freeHackOfJeff authored and ycool committed Apr 5, 2019
1 parent 5a6f8b2 commit 4c04da1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ def extract_gps_data(dest_dir, msg, out_msg_list):
"""
Save gps information to bin file, to be fed into following tools
"""
if type(out_msg_list) != list:
raise ValueError("Gps/Odometry msg should be saved as a list,\
not %s " % type(out_msg_list))
if not isinstance(out_msg_list, list):
raise ValueError("Gps/Odometry msg should be saved as a list, not %s"
% type(out_msg_list))

gps = GPS_OBJ
gps.ParseFromString(msg.message)
Expand Down

0 comments on commit 4c04da1

Please sign in to comment.