Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding in better exception catching for webapp #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JasonTheMain
Copy link

@JasonTheMain JasonTheMain commented Jun 6, 2023

Changes proposed in this pull request:

  • Adding in Ability to log the error instead of eating it

security considerations

Logs will now have descriptive errors for Exception catching.

@@ -495,8 +495,8 @@ def signup():
return redirect(url_for("logout"))
else:
logging.exception("An error occured communicating with UAA")
except Exception:
logging.exception("An error occured during the invite process")
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon further review, I think these changes are unnecessary because logging.exception prints a stack trace with the error already?

https://stackoverflow.com/a/5191885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants