diff --git a/python/lib/dependabot/python/update_checker/pipenv_version_resolver.rb b/python/lib/dependabot/python/update_checker/pipenv_version_resolver.rb index 50021ad707..b8a196c17c 100644 --- a/python/lib/dependabot/python/update_checker/pipenv_version_resolver.rb +++ b/python/lib/dependabot/python/update_checker/pipenv_version_resolver.rb @@ -160,7 +160,7 @@ def base_directory end def handle_pipenv_errors_resolving_original_reqs(error) - if error.message.include?("Could not find a version") || + if /Could\s+not\s+find\s+a\s+version/.match?(error.message) || error.message.include?("package versions have conflicting dependencies") msg = clean_error_message(error.message) msg.gsub!(/\s+\(from .*$/, "")