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