@@ -81,6 +81,7 @@ def match(self, action_alias_match_api):
8181 Handles requests:
8282 POST /actionalias/match
8383 """
84+
8485 command = action_alias_match_api .command
8586
8687 try :
@@ -100,6 +101,7 @@ def match(self, action_alias_match_api):
100101 }
101102
102103 def help (self , filter , pack , limit , offset , ** kwargs ):
104+
103105 """
104106 Get available help strings for action aliases.
105107
@@ -109,15 +111,16 @@ def help(self, filter, pack, limit, offset, **kwargs):
109111 try :
110112 aliases_resp = super (ActionAliasController , self )._get_all (** kwargs )
111113 aliases = [ActionAliasAPI (** alias ) for alias in aliases_resp .json ]
114+
112115 return generate_helpstring_result (
113116 aliases , filter , pack , int (limit ), int (offset )
114117 )
115- except ( TypeError ) as e :
118+ except TypeError as exception_type :
116119 LOG .exception (
117120 "Helpstring request contains an invalid data type: %s." ,
118- six .text_type (e ),
121+ six .text_type (exception_type ),
119122 )
120- return abort (http_client .BAD_REQUEST , six .text_type (e ))
123+ return abort (http_client .BAD_REQUEST , six .text_type (exception_type ))
121124
122125 def post (self , action_alias , requester_user ):
123126 """
0 commit comments