Skip to content

Commit

Permalink
More validation on frames
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jun 7, 2013
1 parent af251f4 commit 5497df7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentry/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ def is_url(self):
def is_valid(self):
if self.in_app not in (False, True, None):
return False
if type(self.vars) != dict:
return False
if type(self.data) != dict:
return False
return self.filename or self.function or self.module

def get_hash(self):
Expand Down

0 comments on commit 5497df7

Please sign in to comment.