Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge branch 'fix-sidebar-menu' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wistful committed Jan 26, 2015
2 parents c03632c + ea5f251 commit 6d0e3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sublautopep8.py
Expand Up @@ -24,7 +24,7 @@ def _next(iter_obj):
def Settings(name, default):
"""Return value by name from user settings."""
view = sublime.active_window().active_view()
project_config = view.settings().get('sublimeautopep8', {})
project_config = view.settings().get('sublimeautopep8', {}) if view else {}
global_config = sublime.load_settings(common.USER_CONFIG_NAME)
return project_config.get(name, global_config.get(name, default))

Expand Down

0 comments on commit 6d0e3f0

Please sign in to comment.