From e405046b184644cd9ea3346dbba38d6910c7dc9b Mon Sep 17 00:00:00 2001 From: Kamil Bukum Date: Tue, 24 Dec 2024 16:17:00 -0800 Subject: [PATCH] version can be nil --- updater/lib/dependabot/api_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater/lib/dependabot/api_client.rb b/updater/lib/dependabot/api_client.rb index c0ebe9be9a..9c902e5dc1 100644 --- a/updater/lib/dependabot/api_client.rb +++ b/updater/lib/dependabot/api_client.rb @@ -332,8 +332,8 @@ def version_manager_json(version_manager) { name: version_manager.name, - raw_version: version_manager.version.to_semver.to_s, - version: version_manager.version.to_s, + raw_version: version_manager.version&.to_semver.to_s, + version: version_manager.version&.to_s, requirement: version_manager_requirement_json(version_manager) } end