Skip to content

Commit

Permalink
exception block refined
Browse files Browse the repository at this point in the history
  • Loading branch information
ptichoid committed Jun 3, 2024
1 parent aff0056 commit 8bb0331
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ecosystem_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def main(gorg, table_name, token):
try:
main(gh_org_str, issues_table, github_token)
done = True
except:
except Exception as e:
logging.error(f"Error has been occurred: {e}")
main(gh_org_str, issues_table, github_fallback_token)
done = True
if done:
Expand Down
3 changes: 2 additions & 1 deletion gitea_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ def main(org, gh_org, rtctable, opentable, string, token):
main(org_string, gh_org_string, rtc_table, open_table, org_string, github_token)
main(f"{org_string}-swiss", f"{gh_org_string}-swiss", f"{rtc_table}_swiss", f"{open_table}_swiss", f"{org_string}-swiss", github_token)
done = True
except:
except Exception as e:
logging.info(f"Error has been occurred: {e}")
main(org_string, gh_org_string, rtc_table, open_table, org_string, github_fallback_token)
main(f"{org_string}-swiss", f"{gh_org_string}-swiss", f"{rtc_table}_swiss", f"{open_table}_swiss", f"{org_string}-swiss", github_fallback_token)
done = True
Expand Down
3 changes: 2 additions & 1 deletion github_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def main(org, gorg, table_name, token):
main(org_string, gh_org_str, orph_table, github_token)
main(f"{org_string}-swiss", f"{gh_org_str}-swiss", f"{orph_table}_swiss", github_token)
done = True
except:
except Exception as e:
logging.info(f"Error has been occurred: {e}")
main(org_string, gh_org_str, orph_table, github_fallback_token)
main(f"{org_string}-swiss", f"{gh_org_str}-swiss", f"{orph_table}_swiss", github_fallback_token)
done = True
Expand Down
3 changes: 2 additions & 1 deletion last_commit_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def main(gorg, table_name, rtc, gh_str, token):
main(gh_org_str, commit_table, rtc_table, gh_org_str, github_token)
main(f"{gh_org_str}-swiss", f"{commit_table}_swiss", f"{rtc_table}_swiss", f"{gh_org_str}-swiss", github_token)
done = True
except:
except Exception as e:
logging.info(f"Error has been occurred: {e}")
main(gh_org_str, commit_table, rtc_table, gh_org_str, github_fallback_token)
main(f"{gh_org_str}-swiss", f"{commit_table}_swiss", f"{rtc_table}_swiss", f"{gh_org_str}-swiss", github_fallback_token)
done = True
Expand Down
3 changes: 2 additions & 1 deletion open_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def main(org, gh_org, table_name, rtc, token):
main(org_string, gh_org_string, open_table, rtc_table, github_token)
main(f"{org_string}-swiss", f"{gh_org_string}-swiss", f"{open_table}_swiss", f"{rtc_table}_swiss", github_token)
done = True
except:
except Exception as e:
logging.error(f"An error occurred: {e}")
main(org_string, gh_org_string, open_table, rtc_table, github_fallback_token)
main(f"{org_string}-swiss", f"{gh_org_string}-swiss", f"{open_table}_swiss", f"{rtc_table}_swiss", github_fallback_token)
done = True
Expand Down

0 comments on commit 8bb0331

Please sign in to comment.