Skip to content

Commit

Permalink
fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Feb 7, 2024
1 parent 3b76531 commit 0f48a8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocean_provider/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ def get_service_files_list(
files_json["datatokenAddress"]
) != Web3.toChecksumAddress(service.datatoken_address):
raise Exception(
f"Provider {network_name}: Invalid datatokenAddress. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}"
f"Provider {network_name}: Mismatch of datatoken. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}"
)
except Exception as e:
raise Exception(
f"Provider {network_name}: Mismatch of datatoken. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}"
f"Provider {network_name}: Invalid datatokenAddress. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}"
)

try:
if Web3.toChecksumAddress(
files_json["nftAddress"]
) != Web3.toChecksumAddress(asset.nftAddress):
raise Exception(
f"Provider {network_name}: Invalid nftAddress. Got {files_json['nftAddress']} vs expected {asset.nftAddress}"
f"Provider {network_name}: Mismatch of dataNft. Got {files_json['nftAddress']} vs expected {asset.nftAddress}"
)
except:
raise Exception(
f"Provider {network_name}: Mismatch of dataNft. Got {files_json['nftAddress']} vs expected {asset.nftAddress}"
f"Provider {network_name}: Invalid nftAddress. Got {files_json['nftAddress']} vs expected {asset.nftAddress}"
)
files_list = files_json["files"]
if not isinstance(files_list, list):
Expand Down

0 comments on commit 0f48a8b

Please sign in to comment.