Skip to content

Commit

Permalink
bug 1383113: fix a couple of missed getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Apr 28, 2020
1 parent a006a1e commit f17c529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socorro/processor/rules/mozilla.py
Expand Up @@ -111,7 +111,7 @@ def action(self, raw_crash, raw_dumps, processed_crash, processor_meta):
else:
processed_crash["hangid"] = raw_crash.get("HangID", None)

# the processed_crash.hang_type has the following meaning:
# the processed_crash["hang_type"] has the following meaning:
# hang_type == -1 is a plugin hang
# hang_type == 1 is a browser hang
# hang_type == 0 is not a hang at all, but a normal crash
Expand All @@ -124,7 +124,7 @@ def action(self, raw_crash, raw_dumps, processed_crash, processor_meta):
processed_crash["hang_type"] = 1
elif plugin_hang_as_int:
processed_crash["hang_type"] = -1
elif processed_crash.hangid:
elif processed_crash["hangid"]:
processed_crash["hang_type"] = -1
else:
processed_crash["hang_type"] = 0
Expand Down

0 comments on commit f17c529

Please sign in to comment.