Skip to content

Commit 5ef5cb6

Browse files
committed
changed verbose to false in readme; only issue netrc warning if initializing to private cluster
1 parent a9044ac commit 5ef5cb6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Example usage:
3333
from sliderule import icesat2
3434

3535
# initialize
36-
icesat2.init("slideruleearth.io", verbose=True)
36+
icesat2.init("slideruleearth.io", verbose=False)
3737

3838
# region of interest
3939
region = [ {"lon":-105.82971551223244, "lat": 39.81983728534918},

sliderule/sliderule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ def authenticate (ps_organization, ps_username=None, ps_password=None):
690690
ps_username = login_credentials[0]
691691
ps_password = login_credentials[2]
692692
except Exception as e:
693-
logger.warning("Failed to retrieve username and password from netrc file: {}".format(e))
693+
if ps_organization != PUBLIC_ORG:
694+
logger.warning("Unable to retrieve username and password from netrc file for machine: {}".format(e))
694695

695696
# authenticate to provisioning system
696697
if ps_username and ps_password:

0 commit comments

Comments
 (0)