Skip to content

Commit

Permalink
feat: Handle exception when printing FHIR resources count
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehrsary committed Apr 18, 2024
1 parent 086c799 commit a64a7be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project/continuously-load-testdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ def main():
json.dump(processed_data_info, json_file, indent=4)

# Print FHIR resources and their counts
print_fhir_resources_count(args.fhirurl)
try:
print_fhir_resources_count(args.fhirurl)
except Exception as e:
logging.error(f"An error occurred while printing FHIR resources count: {e}")


if __name__ == "__main__":
Expand Down

0 comments on commit a64a7be

Please sign in to comment.