Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 8cdba9d

Browse files
committed
Allow for there not to be a directory.
1 parent e2ff696 commit 8cdba9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oidcmsg/key_jar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def init_key_jar(public_path, private_path='', key_defs='', iss=''):
936936
_kj = build_keyjar(key_defs)[1]
937937
jwks = _kj.export_jwks(private=True)
938938
head, tail = os.path.split(private_path)
939-
if not os.path.isdir(head):
939+
if head and not os.path.isdir(head):
940940
os.makedirs(head)
941941
fp = open(private_path, 'w')
942942
fp.write(json.dumps(jwks))

0 commit comments

Comments
 (0)