@@ -82,7 +82,7 @@ def execute(
8282 receipt : TransactionReceipt = to_receipt (
8383 client .arkiv .contract , tx_hash , tx_receipt
8484 )
85- logger .info (f"Arkiv receipt: { receipt } " )
85+ logger .debug (f"Arkiv receipt: { receipt } " )
8686 return receipt
8787
8888 def create_entity (
@@ -179,23 +179,26 @@ def get_entity(self, entity_key: EntityKey, fields: int = ALL) -> Entity:
179179
180180 # HINT: rpc methods to fetch entity content might change this is the place to adapt
181181 # get and decode payload if requested
182- if fields & PAYLOAD :
183- payload = self ._get_storage_value (entity_key )
184-
185- # get and decode annotations and/or metadata if requested
186- if fields & METADATA or fields & ANNOTATIONS :
187- metadata_all = self ._get_entity_metadata (entity_key )
188-
189- if fields & METADATA :
190- # Convert owner address to checksummed format
191- owner = self ._get_owner (metadata_all )
192- expires_at_block = self ._get_expires_at_block (metadata_all )
193-
194- if fields & ANNOTATIONS :
195- annotations = merge_annotations (
196- string_annotations = metadata_all .get ("stringAnnotations" , []),
197- numeric_annotations = metadata_all .get ("numericAnnotations" , []),
198- )
182+ try :
183+ if fields & PAYLOAD :
184+ payload = self ._get_storage_value (entity_key )
185+
186+ # get and decode annotations and/or metadata if requested
187+ if fields & METADATA or fields & ANNOTATIONS :
188+ metadata_all = self ._get_entity_metadata (entity_key )
189+
190+ if fields & METADATA :
191+ # Convert owner address to checksummed format
192+ owner = self ._get_owner (metadata_all )
193+ expires_at_block = self ._get_expires_at_block (metadata_all )
194+
195+ if fields & ANNOTATIONS :
196+ annotations = merge_annotations (
197+ string_annotations = metadata_all .get ("stringAnnotations" , []),
198+ numeric_annotations = metadata_all .get ("numericAnnotations" , []),
199+ )
200+ except Exception as e :
201+ logger .warning (f"Error fetching entity[{ entity_key } ]: { e } " )
199202
200203 # Create and return entity
201204 return Entity (
0 commit comments