Skip to content

Commit

Permalink
Merge pull request #7858 from dependabot/deivid-rodriguez/python-runt…
Browse files Browse the repository at this point in the history
…ime-errors

Fix Python runtime errors when instrumenting versions
  • Loading branch information
deivid-rodriguez authored Aug 21, 2023
2 parents 2029e80 + 370e25c commit 3fc8157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions python/lib/dependabot/python/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

require "dependabot/file_fetchers"
require "dependabot/file_fetchers/base"
require "dependabot/python/language_version_manager"
require "dependabot/python/requirement_parser"
require "dependabot/python/file_parser/pyproject_files_parser"
require "dependabot/python/file_parser/python_requirement_parser"
require "dependabot/errors"

module Dependabot
Expand Down
4 changes: 1 addition & 3 deletions python/lib/dependabot/python/language_version_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def python_requirement_string
else
user_specified_python_version
end
elsif python_version_matching_imputed_requirements
python_version_matching_imputed_requirements
else
PythonVersions::PRE_INSTALLED_PYTHON_VERSIONS.first
python_version_matching_imputed_requirements || PRE_INSTALLED_PYTHON_VERSIONS.first
end
end

Expand Down

0 comments on commit 3fc8157

Please sign in to comment.