Skip to content

Commit

Permalink
fix(mergers): Improved claim history handling when the document # isn…
Browse files Browse the repository at this point in the history
…'t linkified

This can happen from time to time. I think it's when the document is sealed? Anyway, for an example,
see claim #1 in 17-22168-rdd in NYSD.
  • Loading branch information
mlissner committed Aug 23, 2019
1 parent 70b020a commit cab7149
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cl/recap/mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,12 @@ def add_claim_history_entry(new_history, claim):
common_lookup_params = {
'claim': claim,
'date_filed': new_history['date_filed'],
'pacer_case_id': new_history['pacer_case_id'],
# Sometimes missing when a docket entry type
# doesn't have a link for some reason.
'pacer_case_id': new_history.get('pacer_case_id', ''),
'document_number': new_history['document_number'],
}

if history_type == 'docket_entry':
db_history, _ = ClaimHistory.objects.get_or_create(
claim_document_type=ClaimHistory.DOCKET_ENTRY,
Expand Down

0 comments on commit cab7149

Please sign in to comment.