Skip to content

Commit

Permalink
fix: clean script handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sunithvs committed Dec 18, 2024
1 parent e0e1320 commit 5b43b7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/commands/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def run(self, *args):
processed_users = json.load(f)
data_to_process = []
with open(Settings.DATA_TO_PROCESS, 'r') as f:
data_to_process = json.load(f)
try:
data_to_process = json.load(f)
except Exception as e:
data_to_process = []
data_to_process.extend(processed_users.keys())

with open(Settings.DATA_TO_PROCESS, 'w') as f:
Expand Down

0 comments on commit 5b43b7c

Please sign in to comment.