You are improperly using Tag.from_string. from_string takes in a the string for a raw SHAFILE. This means you need the entire contents of an actual Tag object.
Perhaps you mean to construct a new Tag object and give it a name? Like all the other objects, you need to create the object and then assign the values like so:
tag = Tag()
tag.tagger = tagger
tag.message = message
tag.name = tag
You are improperly using Tag.from_string. from_string takes in a the string for a raw SHAFILE. This means you need the entire contents of an actual Tag object.
Perhaps you mean to construct a new Tag object and give it a name? Like all the other objects, you need to create the object and then assign the values like so:
tag = Tag()
tag.tagger = tagger
tag.message = message
tag.name = tag