Skip to content

Commit d65e9f6

Browse files
committed
final tested fix for checking credentials
1 parent eee52c1 commit d65e9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodis/downmodis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def __init__(self, destinationFolder, password=None, user=None, token=None,
297297
# token for download from password
298298
self.token = self.password if self.user == "token" else None
299299

300-
if not user and not password and not token:
300+
if not self.user and not self.password and not self.token:
301301
raise IOError("You must provide either a token or a user and password")
302302

303303
# set the http header

0 commit comments

Comments
 (0)