Skip to content

Commit

Permalink
Fix bag migration failures caused by typo in connection_header assign…
Browse files Browse the repository at this point in the history
…ment (#1952)

Bag migration failed with follwoing errors:
NameError: global name 'connection_header' is not defined
This change fixes that by using local name conn_header
  • Loading branch information
TSchildhauer authored and dirk-thomas committed May 21, 2020
1 parent 12da5c1 commit 6990a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosbag/src/rosbag/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def fixbag2(migrator, inbag, outbag, force=False):
new_conn_header = _migrate_connection_header(conn_header, new_msg_type)
rebag.write(topic, mig_msg, t, connection_header=new_conn_header, raw=True)
else:
rebag.write(topic, msg, t, connection_header=connection_header, raw=True)
rebag.write(topic, msg, t, connection_header=conn_header, raw=True)
rebag.close()
bag.close()

Expand Down

0 comments on commit 6990a1d

Please sign in to comment.