mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Do not double-check exceptions
This commit is contained in:
parent
4eb6ec85ac
commit
c01cc35663
@ -37,17 +37,11 @@ class Args(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
try:
|
|
||||||
return get_var_config('POWERLINE_CONFIG')
|
return get_var_config('POWERLINE_CONFIG')
|
||||||
except IndexError:
|
|
||||||
return None
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def theme_option(self):
|
def theme_option(self):
|
||||||
try:
|
|
||||||
return get_var_config('POWERLINE_THEME_CONFIG')
|
return get_var_config('POWERLINE_THEME_CONFIG')
|
||||||
except IndexError:
|
|
||||||
return None
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config_path(self):
|
def config_path(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user