Deconstruct header failing

Just updated with the Versioner and i’ve found that the DeconstructHeader component is failing with the following error:

Runtime error (TypeErrorException): sequence item 1: expected string, float found

  line 48, in script

Just before the update it used to work.
Will appreciate if you can check this.

In the meantime i solved it forcing the val to be string like this (line 48):

metadata = [': '.join([key, str(val)]) for key, val in _header.metadata.items()]

Instead of the original:

metadata = [': '.join([key, val]) for key, val in _header.metadata.items()]


Thank you for finding the bug, @AbrahamYezioro !

… and your fix is actually the same as what I just implemented in the plugin:

Thanks again!

1 Like