This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit 6f41eae
fix: handle dict type trigger_string in alert deduplication for Cline (#1163)
* fix: handle dict type trigger_string in alert deduplication for Cline
The alert deduplication logic was failing when trigger_string was a dictionary,
causing an AttributeError when trying to call split() on it. Updated the code to:
- Check trigger_string type before processing
- Handle dictionary case by creating a consistent JSON string from relevant fields
- Maintain existing string handling for backwards compatibility
- Add fallback for other types by converting to string
This ensures alerts are properly deduplicated regardless of trigger_string format.
Fixes: #1162
* fix lint
---------
Co-authored-by: Yolanda Robla <info@ysoft.biz>1 parent eed259d commit 6f41eae
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
521 | 536 | | |
522 | 537 | | |
523 | 538 | | |
| |||
0 commit comments