Making sure that all the mentioned operators in issue 243 are going to exit gracefully when no input is provided
Adding documentation to the operators that were missing it.
Notes:
in Landsat8SearchOperator i have added the following:
_if self.area is None or self.dbcredentials is None:
log.info("Either area is received None or credentials are set to wrong values.")
return
Also i changed the following instead of throwing an exception in case no product returned from the search operator:
_if product_id is None or entity_id is None or download_url is None:
log.error("Could not find any product for the {} area".format(self.area))
return
else:
return (product_id, entity_id, downloadurl)
So that we avoid throwing an exception from the operator.
This PR includes:
Notes: in Landsat8SearchOperator i have added the following: _if self.area is None or self.dbcredentials is None: log.info("Either area is received None or credentials are set to wrong values.") return
Also i changed the following instead of throwing an exception in case no product returned from the search operator: _if product_id is None or entity_id is None or download_url is None: log.error("Could not find any product for the {} area".format(self.area)) return else: return (product_id, entity_id, downloadurl) So that we avoid throwing an exception from the operator.