Skip to content

Commit

Permalink
tumblr_backup: Don't print status after final message
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Sep 29, 2020
1 parent 6a0db22 commit e671667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tumblr_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e671667

Please sign in to comment.