Skip to content

Better setting of in-app in stack frames #1894

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

Merged
merged 17 commits into from
Feb 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only fetching working directory when not already set.
  • Loading branch information
antonpirker committed Feb 15, 2023
commit 34b8e3baedf40a7af6f56a53f290d3bfcaa5caed
11 changes: 6 additions & 5 deletions sentry_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ def _get_options(*args, **kwargs):
if rv["instrumenter"] is None:
rv["instrumenter"] = INSTRUMENTER.SENTRY

try:
project_root = os.getcwd()
except Exception:
project_root = None
if rv["project_root"] is None:
try:
project_root = os.getcwd()
except Exception:
project_root = None

rv["project_root"] = project_root
rv["project_root"] = project_root

return rv

Expand Down