Skip to content

Commit 0c3145d

Browse files
committed
fix none type error
1 parent e80d45c commit 0c3145d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agixt/endpoints/Extension.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ async def get_extension_categories_v1(
190190
# Find extensions that belong to this category
191191
category_extensions = []
192192
for extension in all_extensions:
193-
if extension.get("category_info", {}).get("id") == str(category.id):
193+
category_info = extension.get("category_info")
194+
if category_info and category_info.get("id") == str(category.id):
194195
category_extensions.append(
195196
{
196197
"name": extension["extension_name"],

0 commit comments

Comments
 (0)