From 135fae95a801c86f86db383bc760bb8b55cfa745 Mon Sep 17 00:00:00 2001
From: Alexandre Aubin <alex.aubin@mailoo.org>
Date: Fri, 16 Apr 2021 00:06:42 +0200
Subject: [PATCH] For some reason yunohost-api don't want to start due to
 recent changes in actionamp, apply this trick for subcategories just like we
 do for categories

---
 moulinette/actionsmap.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py
index 90656e61..6b162868 100644
--- a/moulinette/actionsmap.py
+++ b/moulinette/actionsmap.py
@@ -778,6 +778,9 @@ class ActionsMap(object):
                             # No parser for the action
                             continue
 
+                        if action_parser is None:  # No parser for the action
+                            continue
+
                         # Store action identifier and add arguments
                         action_parser.set_defaults(_tid=tid)
                         action_parser.add_arguments(