Skip to content

Commit 02fba6c

Browse files
committed
Won't log slugs if no username/pass is supplied
Won't log slugs if no username/pass is supplied
1 parent b715cd8 commit 02fba6c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
]
1111
description = "The companion package to the Rubin citizen science notebooks."
1212

13-
version = "0.6.0"
13+
version = "0.6.1"
1414
readme = "README.md"
1515
dependencies = [
1616
"panoptes_client",

src/rubin/citsci/pipeline.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ def login_to_zooniverse(self, email):
9494
if(valid_email):
9595
self.email = email
9696
self.client = panoptes_client.Panoptes.connect(login="interactive")
97-
print("You now are logged in to the Zooniverse platform.")
98-
self.__log_slug_names()
97+
if self.client.username is not None:
98+
print("You now are logged in to the Zooniverse platform.")
99+
self.__log_slug_names()
100+
else:
101+
print("Please supply a valid username and password.")
99102

100103
return
101104
else:

0 commit comments

Comments
 (0)