Don't crash on non-str tag-values

Fixes #76
This commit is contained in:
Klaas van Schelven
2025-04-06 15:00:54 +02:00
parent 5d4271e350
commit abaa1d9b2f

View File

@@ -157,7 +157,7 @@ def digest_tags(event_data, event, issue):
# The max length of 200 is from TFM for user-provided tags. Still, we just apply it on deduced tags as well;
# It's a reasonably safe guess that this will not terribly confuse people, and avoids triggering errors on-save.
tags = {
k: v[:200] for k, v in deduce_tags(event_data).items()
k: str(v)[:200] for k, v in deduce_tags(event_data).items()
}
store_tags(event, issue, tags)