Skip to content

Commit

Permalink
Debug indent
Browse files Browse the repository at this point in the history
  • Loading branch information
WortalMombat authored Nov 4, 2021
1 parent 4ef1f7f commit 0c3bd8f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions landsatxplore/earthexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ def download(self, identifier, output_dir, dataset=None, timeout=300, skip=False
entity_id = self.api.get_entity_id(identifier, dataset)
else:
entity_id = identifier
try:
url = EE_DOWNLOAD_URL.format(data_product_id=DATA_PRODUCTS[dataset], entity_id=entity_id)
filename = self._download(url, output_dir, timeout=timeout, skip=skip)
except:
url = EE_DOWNLOAD_URL.format(data_product_id=DATA_PRODUCTS_II[dataset], entity_id=entity_id)
filename = self._download(url, output_dir, timeout=timeout, skip=skip)
try:
url = EE_DOWNLOAD_URL.format(data_product_id=DATA_PRODUCTS[dataset], entity_id=entity_id)
filename = self._download(url, output_dir, timeout=timeout, skip=skip)
except:
url = EE_DOWNLOAD_URL.format(data_product_id=DATA_PRODUCTS_II[dataset], entity_id=entity_id)
filename = self._download(url, output_dir, timeout=timeout, skip=skip)

# Original code
#url = EE_DOWNLOAD_URL.format(
Expand Down

0 comments on commit 0c3bd8f

Please sign in to comment.