aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gkeys/gkeys/base.py')
-rw-r--r--gkeys/gkeys/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gkeys/gkeys/base.py b/gkeys/gkeys/base.py
index 8aff933..48c8a4d 100644
--- a/gkeys/gkeys/base.py
+++ b/gkeys/gkeys/base.py
@@ -327,7 +327,7 @@ class CliBase(object):
if args.config:
self.config.defaults['config'] = args.config
self.config.defaults['configdir'] = os.path.dirname(args.config)
- if args.email:
+ if getattr(args, 'email', False):
configs = [self.config.defaults['config'], os.path.abspath(os.path.join(self.config.defaults['configdir'], "email.conf"))]
self.config.read_config(configs)
else: