Check self.theme_option before using

Fixes #493
This commit is contained in:
ZyX 2013-05-19 13:28:29 +04:00
parent ea3c939320
commit 79e44dd2a0

View File

@ -28,7 +28,7 @@ class ShellPowerline(Powerline):
def load_theme_config(self, name):
r = super(ShellPowerline, self).load_theme_config(name)
if name in self.theme_option:
if self.theme_option and name in self.theme_option:
mergedicts(r, self.theme_option[name])
return r