diff --git a/platformio/platform/base.py b/platformio/platform/base.py index 38c9b4cf..c5d9d636 100644 --- a/platformio/platform/base.py +++ b/platformio/platform/base.py @@ -185,7 +185,7 @@ class PlatformBase( # pylint: disable=too-many-instance-attributes,too-many-pub options["pioframework"] = options["framework"] # override user custom packages self._custom_packages = options.get("platform_packages") - self.configure_default_packages(options, targets) + self.configure_default_packages(options, targets or []) def configure_default_packages(self, options, targets): # enable used frameworks