Skip to content

Conversation

@javierjcf
Copy link
Contributor

@javierjcf javierjcf commented Nov 10, 2025

…path does not exist

In my doodba insrtance, migrating this week to v18 fail since this commit :527770f

path_info = get_resource_from_path(self._context["install_filename"])
if path_info[0] == "openupgrade_scripts":

Although the install_filename key exists in self._context, the function get_resource_from_path returns None for my environment. Consequently, attempting to access path_info[0] raises an error (e.g., TypeError: 'NoneType' object is not subscriptable), which breaks the migration process.

A necessary fix would be to add a check for the existence of path_info before attempting to access its elements:

@OCA-git-bot
Copy link
Contributor

Hi @StefanRijnhart, @hbrunn, @legalsylvain,
some modules you are maintaining are being modified, check this out!

@javierjcf javierjcf changed the title [18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filenmae … [18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filename … Nov 10, 2025
@pedrobaeza pedrobaeza added this to the 18.0 milestone Nov 10, 2025
@pedrobaeza pedrobaeza merged commit 6422275 into OCA:18.0 Nov 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants