Skip to content

Commit

Permalink
Merge pull request #655 from cjbbb/main
Browse files Browse the repository at this point in the history
Urgent fix issue in #648
  • Loading branch information
cjbbb authored Oct 29, 2024
2 parents 8f55332 + 42e50e3 commit 1cecff3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aihawk_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ def is_previously_failed_to_apply(self, link):
file_name = "failed"
file_path = self.output_file_directory / f"{file_name}.json"

if not file_path.exists():
with open(file_path, "w", encoding="utf-8") as f:
json.dump([], f)

with open(file_path, 'r', encoding='utf-8') as f:
try:
existing_data = json.load(f)
Expand Down

0 comments on commit 1cecff3

Please sign in to comment.