Login can take a moment so print some status information.
> password *secret*
Password set
> login
+Setting up a connection...
+Logging in...
> notifications
1. 2019-08-13T19:40:17.000Z Joe Doe has liked your post I've started writing...
2. 2019-08-13T17:59:23.000Z Joe Doe commented on your post Please help me wi...
elif self.password == None:
print("Use the 'password' command.")
else:
+ print("Setting up a connection...")
self.connection = diaspy.connection.Connection(
pod = "https://%s" % self.pod, username = self.username, password = self.password)
try:
+ print("Logging in...")
self.connection.login()
except diaspy.errors.LoginError:
print("Login failed.")