Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions src/sentry/lang/javascript/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def __init__(self, project=None, release=None, dist=None, allow_scraping=True):
self.allow_scraping = allow_scraping

def bind_release(self, release=None, dist=None):
"""Updates the fetcher with a project, release and dist."""
"""Updates the fetcher with a release and dist."""
self.release = release
self.dist = dist

Expand Down Expand Up @@ -900,8 +900,9 @@ def __init__(self, *args, **kwargs):

# Component responsible for fetching the files.
self.fetcher = Fetcher(
project=self.project,
allow_scraping=organization.get_option("sentry:scrape_javascript", True) is not False
and self.project.get_option("sentry:scrape_javascript", True)
and self.project.get_option("sentry:scrape_javascript", True),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd move it outside to allow_scraping var, as its hard to read now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree

)

def get_valid_frames(self):
Expand Down