From e671667a7e2f18adf1fac016eeb5dd818eb14291 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Wed, 16 Sep 2020 20:53:32 -0400 Subject: [PATCH] tumblr_backup: Don't print status after final message --- tumblr_backup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tumblr_backup.py b/tumblr_backup.py index fa9750a..8859aa1 100755 --- a/tumblr_backup.py +++ b/tumblr_backup.py @@ -171,7 +171,8 @@ def __call__(self, msg, account=False): with self.lock: for line in msg.splitlines(True): self._print(line, account) - self._print(self.status_msg, account=True) + if self.status_msg: + self._print(self.status_msg, account=True) sys.stdout.flush() def status(self, msg): @@ -712,6 +713,7 @@ def _backup(posts): ix.build_index() ix.save_index() + log.status(None) log('{} {}posts backed up\n'.format(self.post_count, 'liked ' if options.likes else ''), account=True) self.total_count += self.post_count