vascobnunes / fetchLandsatSentinelFromGoogleCloud

Find and download Landsat and Sentinel-2 data from the public Google Cloud
https://vascobnunes.github.io/fetchLandsatSentinelFromGoogleCloud/
MIT License
52 stars 22 forks source link

Exception raising: raising strings is deprecated #34

Closed GreatEmerald closed 7 years ago

GreatEmerald commented 7 years ago

The raise statement in line 19 raises a string, which is invalid. It should raise an exception.

As per https://stackoverflow.com/a/24065533/7390721:

raise 'message' # really really wrong. don't do this.

(I split this from issue #29 as it's a separate bug and that issue was auto-closed.)