Skip to content

Commit

Permalink
fix: error exception message on skip_encode,skip_decode (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbear authored Feb 3, 2024
1 parent 8d551c1 commit 9398740
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/structurer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ def skip_decode(
}
else:
raise Exception(
f"Expected ArrayProperty or StructProperty, got {type_name} in {path}"
f"Expected ArrayProperty or MapProperty or StructProperty, got {type_name} in {path}"
)
return value


def skip_encode(
writer: FArchiveWriter, property_type: str, properties: dict[str, Any]
) -> int:
Expand Down Expand Up @@ -93,7 +92,7 @@ def skip_encode(
return len(properties["value"])
else:
raise Exception(
f"Expected ArrayProperty or StructProperty, got {property_type}"
f"Expected ArrayProperty or MapProperty or StructProperty, got {property_type}"
)


Expand Down

0 comments on commit 9398740

Please sign in to comment.