Skip to content

Commit

Permalink
revisions: convert empty fieldValue to None
Browse files Browse the repository at this point in the history
We check to see if the query was empty and return `None`,
however the query will be non-empy but then `fieldValue`
will be empty, which fails when submitting to BigQuery.
  • Loading branch information
cgsheeh committed Nov 1, 2024
1 parent 870e1db commit 37fd817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_bug_id(revision: DiffDb.Revision, bug_id_query) -> Optional[int]:
if not bug_id_query_result:
return None

return bug_id_query_result.fieldValue
return bug_id_query_result.fieldValue or None


class PhabricatorEdgeConstant(IntEnum):
Expand Down

0 comments on commit 37fd817

Please sign in to comment.