File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
offchain/metadata/parsers/catchall Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 33## v0.3.3
44
55- Fix an issue in ` OpenseaParser ` where the plain-text svg wouldn't be recognized as valid image uri
6+ - Add check in ` DefaultCatchallParser ` to require that ` raw_data ` be a ` dict `
67
78## v0.3.2
89
Original file line number Diff line number Diff line change @@ -242,4 +242,7 @@ def should_parse_token( # type: ignore[no-untyped-def]
242242 Returns:
243243 bool: whether or not the collection parser handles this token.
244244 """
245- return bool (token .uri and raw_data )
245+
246+ if raw_data is not None and not isinstance (raw_data , dict ):
247+ logger .info ("DefaultCatchallParser skips token {token} due to invalid raw data" )
248+ return bool (token .uri and raw_data is not None and isinstance (raw_data , dict ))
Original file line number Diff line number Diff line change 55import pytest
66
77from offchain .metadata .fetchers .metadata_fetcher import MetadataFetcher
8- from offchain .metadata .models .metadata import Metadata , MetadataStandard
8+ from offchain .metadata .models .metadata import Metadata
99from offchain .metadata .models .token import Token
1010from offchain .metadata .parsers .catchall .default_catchall import DefaultCatchallParser
1111
You can’t perform that action at this time.
0 commit comments