Skip to content

Commit

Permalink
fix error happening in dev with rawrequest in intake in progress and …
Browse files Browse the repository at this point in the history
…null axisrequestid
  • Loading branch information
nkan-aot2 authored Feb 28, 2024
1 parent c33a92c commit 4ee15d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def generateemailhtml(self, alerts):
<td>
'''
for m in alert['potentialmatches']['matches']:
emailhtml += (m['requestid'] + " - similarity: " + str(m['similarity']*100) + "%<br>")
emailhtml += (m.get('requestid', '') + " - similarity: " + str(m['similarity']*100) + "%<br>")
emailhtml = emailhtml[:-4]
emailhtml += '''</td>
<td>''' + alert['request']['requestrawdata']['descriptionTimeframe']['description'][0:99] + '''...</td>
</tr>
'''
return emailhtml
return emailhtml

0 comments on commit 4ee15d8

Please sign in to comment.