From 1860d749721e4e8eff91635a23d19ed683708453 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Thu, 15 Aug 2019 11:27:55 +0200 Subject: [PATCH] Note what we're doing during login Login can take a moment so print some status information. --- README.md | 2 ++ jan-pona-mute.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 7e8c5bd..39221d7 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ Username and pod set: kensanata@pluspora.com > 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... diff --git a/jan-pona-mute.py b/jan-pona-mute.py index b54f8f3..7ed8ebd 100755 --- a/jan-pona-mute.py +++ b/jan-pona-mute.py @@ -232,9 +232,11 @@ enter a number to select the corresponding item. 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.") -- 2.25.1