@@ -201,11 +201,16 @@ def _makeActionsList(self):
201201 # Translators: Label for an action that opens help for the selected addon
202202 displayName = pgettext ("addonStore" , "&Help" ),
203203 actionHandler = self .helpAddon ,
204- validCheck = lambda aVM : aVM .model .isInstalled and self ._filteredStatusKey in (
205- # Showing help in the updatable add-ons view is misleading
206- # as we can only fetch the add-on help from the installed version.
207- _StatusFilterKey .INSTALLED ,
208- _StatusFilterKey .INCOMPATIBLE ,
204+ validCheck = lambda aVM : (
205+ aVM .model .isInstalled
206+ and self ._filteredStatusKey in (
207+ # Showing help in the updatable add-ons view is misleading
208+ # as we can only fetch the add-on help from the installed version.
209+ _StatusFilterKey .INSTALLED ,
210+ _StatusFilterKey .INCOMPATIBLE ,
211+ )
212+ and aVM .model ._addonHandlerModel is not None
213+ and aVM .model ._addonHandlerModel .getDocFilePath () is not None
209214 ),
210215 listItemVM = selectedListItem
211216 ),
@@ -236,7 +241,9 @@ def _makeActionsList(self):
236241 ]
237242
238243 def helpAddon (self , listItemVM : AddonListItemVM ) -> None :
244+ assert listItemVM .model ._addonHandlerModel is not None
239245 path = listItemVM .model ._addonHandlerModel .getDocFilePath ()
246+ assert path is not None
240247 startfile (path )
241248
242249 def removeAddon (self , listItemVM : AddonListItemVM ) -> None :
0 commit comments