From 841c72b78598c31ccb1b2c9ee38481af12d78ad5 Mon Sep 17 00:00:00 2001 From: abram axel booth Date: Fri, 13 Sep 2024 11:27:46 -0400 Subject: [PATCH] fix: don't break on no supported features --- addon_service/external_storage_service/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon_service/external_storage_service/models.py b/addon_service/external_storage_service/models.py index 875bfbc5..79e9747c 100644 --- a/addon_service/external_storage_service/models.py +++ b/addon_service/external_storage_service/models.py @@ -59,7 +59,7 @@ class ExternalStorageService(ExternalService): @property def supported_features(self) -> list[SupportedFeatures]: """get the enum representation of int_supported_features""" - return SupportedFeatures(self.int_supported_features) + return SupportedFeatures(self.int_supported_features or 0) @supported_features.setter def supported_features(self, new_supported_features: SupportedFeatures):