diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-21 05:48:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-21 05:48:13 +0000 |
commit | bfa431576ccd54eb6d137a5743699a1700eea6b8 (patch) | |
tree | df1a0204811c9a32da9493945ead25f683463b35 /lib/thandy/formats.py | |
parent | 8418684170c1f5abedbce814591a5ce528f91520 (diff) |
fix/document issues noted by arma in todo.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17350 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/formats.py')
-rw-r--r-- | lib/thandy/formats.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py index 8a27a65..cf9ff1f 100644 --- a/lib/thandy/formats.py +++ b/lib/thandy/formats.py @@ -790,6 +790,9 @@ def makeKeylistObj(keylist_fname, includePrivate=False): klist = [] for k in keys: k = thandy.keys.RSAKey.fromJSon(k) + if includePrivate and not k.isPrivateKey(): + raise thandy.FormatException("Private key information not found.") + klist.append({'key': k.format(private=includePrivate), 'roles' : k.getRoles() }) result = { '_type' : "Keylist", |