Skip to content

Commit

Permalink
Extract raise from loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementHector authored May 6, 2022
1 parent dd9e7db commit a254cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/scriptsmenu/launchfornuke.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def _nuke_main_window():
if (obj.inherits('QMainWindow') and
obj.metaObject().className() == 'Foundry::UI::DockMainWindow'):
return obj
raise RuntimeError('Could not find Nuke MainWindow instance')
raise RuntimeError('Could not find Nuke MainWindow instance')


def _nuke_main_menubar():
Expand All @@ -33,4 +33,4 @@ def main(title="Scripts"):
return menu

menu = scriptsmenu.ScriptsMenu(title=title, parent=nuke_main_bar)
return menu
return menu

0 comments on commit a254cda

Please sign in to comment.