Skip to content

Commit

Permalink
Fix: check the nullness of project_savvy_settings (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Sep 21, 2018
1 parent d30f7c9 commit 311593c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, parent=None):
def get(self, key, default=None):
window = sublime.active_window()
view = window.active_view()
project_savvy_settings = view.settings().get("GitSavvy", {})
project_savvy_settings = view.settings().get("GitSavvy", {}) or {}

if key in project_savvy_settings:
return project_savvy_settings[key]
Expand Down

0 comments on commit 311593c

Please sign in to comment.