MCPcopy
hub / github.com/google/earthengine-api / _safe_get_info

Method _safe_get_info

python/ee/cli/commands.py:1118–1124  ·  view source on GitHub ↗
(self, asset_id, verbose)

Source from the content-addressed store, hash-verified

1116 self._delete_asset(asset, recursive, args.verbose, args.dry_run)
1117
1118 def _safe_get_info(self, asset_id, verbose):
1119 try:
1120 return ee.data.getInfo(asset_id)
1121 except ee.EEException as e:
1122 if verbose:
1123 print(f'Failed to get info for {asset_id}. {e}')
1124 return None
1125
1126 def _delete_asset(self, asset_id, recursive, verbose, dry_run):
1127 """Attempts to delete the specified asset or asset collection."""

Callers 1

runMethod · 0.95

Calls 1

getInfoMethod · 0.45

Tested by

no test coverage detected