notion-backup icon indicating copy to clipboard operation
notion-backup copied to clipboard

line 84, in backup if task_status["status"]["type"] == "complete": KeyError: 'status'

Open angelaaaateng opened this issue 4 years ago • 2 comments

Hi! I'm currently trying to run your script to backup my notion workspace -- thanks so much for putting this together! However, I keep running into the above error. Could you please advise?

angelaaaateng avatar Jul 31 '21 17:07 angelaaaateng

I have previously used your script to backup my workspace but now I am also running into this issue

willleeney avatar Jan 09 '22 20:01 willleeney

@angelaaaateng task_status["status"]["type"] == "complete" needs to be rewritten to task_status["state"] == "success".

edit: correction

willleeney avatar Jan 09 '22 20:01 willleeney