Oct-30-2021, 03:27 PM
(Oct-30-2021, 11:21 AM)buran Wrote: Your current snippet raise different error
Error:Traceback (most recent call last): File "***", line **, in <module> write_json(y) File "***", line **, in write_json file_data["emp_details"].append(new_date) TypeError: list indices must be integers or slices, not str
I'm sorry, the code I gave you is wrong. No blocks try and except.