Skip to content

Commit

Permalink
more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hugow committed Apr 2, 2024
1 parent a0209ea commit c7c3b4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/packages/menuhook/menuhook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def register(action, category, fcn, menu=None, text=None, tooltip=None, in2025_m
add_macro(action, category, text or action, tooltip or action, fcn)
if not defined and not menu is None:
add_menu_item(menu, action, category)
#pylint: enable=too-many-arguments, line-too-long
#pylint: enable=too-many-arguments, line-too-long

# for 2025, pre-can a menu for the howtos
def register_howtos_menu_2025(menumgr):
Expand Down Expand Up @@ -165,9 +165,9 @@ def register_howtos_menu_2025(menumgr):
if scriptmenu is not None:
try:
scriptmenu.createaction(id_2025, 647394, f"{action}`{category}")
#pylint: disable=line-too-long, broad-exception-caught
#pylint: disable=line-too-long, broad-exception-caught
except Exception as e:
print(f"Could not create item {category}, {action} in menu {in2025_menuid} because {e}")
#pylint: enable=line-too-long, broad-exception-caught
#pylint: enable=line-too-long, broad-exception-caught
else:
print(f"Could not create item {category}, {action}, in missing menu {in2025_menuid}")

0 comments on commit c7c3b4d

Please sign in to comment.