Skip to content

Commit

Permalink
more corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Oct 2, 2024
1 parent ac241ba commit 3ffa4ee
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions mainv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,31 +388,35 @@ def main():
while True:
try:
chek_preprocessor_data(BUNDLES, LENSES, PATIENT_IDS, BASE_URL)
except:
logger.debug(f"Error on function chek_preprocessor_data")
except Exception as err:
logger.debug(f"Error on function chek_preprocessor_data -> {err}")
time.sleep(1)
try:
chek_all_lenses_data(BUNDLES, PATIENT_IDS, BASE_URL)
except:
logger.debug(f"Error on function chek_all_lenses_data")
except Exception as err:
logger.debug(f"Error on function chek_all_lenses_data -> {err}")

time.sleep(1)
try:
chek_all_preprocess_data(BUNDLES, PATIENT_IDS, BASE_URL)
except:
logger.debug(f"Error on function chek_all_preprocess_data")
except Exception as err:
logger.debug(f"Error on function chek_all_preprocess_data -> {err}")

time.sleep(1)
try:
chek_all_prpcessor_with_post_data(BUNDLES, PATIENT_IDS, BASE_URL)
except:
logger.debug(f"Error on function chek_all_prpcessor_with_post_data")
except Exception as err:
logger.debug(
f"Error on function chek_all_prpcessor_with_post_data -> {err}"
)

time.sleep(1)
try:
chek_lenses_foralreadypreprocess_data(PREPROCBUNDLES, PATIENT_IDS, BASE_URL)
except:
logger.debug(f"Error on function chek_lenses_foralreadypreprocess_data")
except Exception as err:
logger.debug(
f"Error on function chek_lenses_foralreadypreprocess_data -> {err}"
)

time.sleep(3600)

Expand Down

0 comments on commit 3ffa4ee

Please sign in to comment.