Skip to content

Commit

Permalink
i.landsat.download: do not log to landsatxplore.api if not necessary
Browse files Browse the repository at this point in the history
merged in PR #885
  • Loading branch information
pesekon2 committed Apr 11, 2023
1 parent 57f0d35 commit 551e5f6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def main():
except IOError as e:
gs.fatal(_("Unable to open settings file: {}").format(e))

landsat_api = landsatxplore.api.API(user, password)

if user is None or password is None:
gs.fatal(_("No user or password given"))

Expand Down Expand Up @@ -229,6 +227,7 @@ def main():
ee.logout()

else:
landsat_api = landsatxplore.api.API(user, password)

bb = get_bb(options["map"])

Expand Down

0 comments on commit 551e5f6

Please sign in to comment.