commit:     396d5c5afab583fc1873d4a211c856d9df0b8074
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 22:29:46 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 22:29:46 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=396d5c5a

gkeys/seedhandler.py: Add an isdir check to load_category

This prevents trying to look into a file like it does a keyring directory.
(I accidentlly added garbage to a keyring using gpg directly)

 gkeys/gkeys/seedhandler.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gkeys/gkeys/seedhandler.py b/gkeys/gkeys/seedhandler.py
index 3e51bb2..5c3e8aa 100644
--- a/gkeys/gkeys/seedhandler.py
+++ b/gkeys/gkeys/seedhandler.py
@@ -112,6 +112,8 @@ class SeedHandler(object):
                 nicks = os.listdir(catdir)
             for nick in nicks:
                 seed_path = os.path.join(catdir, nick)
+                if not os.path.isdir(seed_path):
+                    continue
                 gkey_path = os.path.join(seed_path, 'gkey.seeds')
                 seed = None
                 try:

Reply via email to