diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2018-07-07 07:47:46 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2018-07-07 07:47:46 -0700 |
commit | dd966401553f4632f60cb673327b9446fb326654 (patch) | |
tree | 9f9691e60a71386bf7ddee43df6f1fec69708988 | |
parent | bin/gkeys-ldap: Force python2.7 for now (diff) | |
download | gentoo-keys-dd966401553f4632f60cb673327b9446fb326654.tar.gz gentoo-keys-dd966401553f4632f60cb673327b9446fb326654.tar.bz2 gentoo-keys-dd966401553f4632f60cb673327b9446fb326654.zip |
gkeys/base.py: Fix args.email test for gkeys-ldap
gkeys-ldap does not use the email arg.
Prevents:
File "/var/lib/gkeys/gentoo-keys/gkeys/gkeys/base.py", line 330, in setup
if args.email:
AttributeError: 'Namespace' object has no attribute 'email'
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r-- | gkeys/gkeys/base.py | 2 |
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: |