You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NameError: _status_msg called without self in the error branches #33
The two error branches at the top of DistractionFreeWindowCommand.run() call _status_msg(...) as a bare function, but it is an instance method, so they raise NameError instead of showing the status message (and the widget check is exactly the case where the message was meant to appear).
ifwisNone:
_status_msg('Error: Window is None') # NameErrorreturnifw.active_view().settings().get('is_widget', False):
_status_msg('Error: Active view is a widget.') # NameErrorreturn
Reproduced with the package code (Sublime stubbed):
active view is a widget NameError: name '_status_msg' is not defined
Fix:self._status_msg(...).
Found while testing packages from the Package Control catalog.
Activity