diff --git a/python/nav/ipdevpoll/shadows/__init__.py b/python/nav/ipdevpoll/shadows/__init__.py index b1bfdfb793..b658064569 100644 --- a/python/nav/ipdevpoll/shadows/__init__.py +++ b/python/nav/ipdevpoll/shadows/__init__.py @@ -305,8 +305,8 @@ def _post_events_version_changes(self, containers): netbox=containers.get(None, Netbox).get_existing_model(), alert_type=ALERT_TYPE_MAPPING[alert_type], varmap={ - "old_version": old_version, - "new_version": new_version, + "old_version": old_version if old_version else "N/A", + "new_version": new_version if new_version else "N/A", }, ).save()