Skip to content

Commit a941140

Browse files
author
Roland Hedberg
committed
More robus.
1 parent c731d8c commit a941140

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/saml2/sigver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,11 @@ def security_context(conf, debug=None):
880880
if conf.crypto_backend == 'xmlsec1':
881881
xmlsec_binary = conf.xmlsec_binary
882882
if not xmlsec_binary:
883-
xmlsec_binary = get_xmlsec_binary(conf.xmlsec_path)
883+
try:
884+
_path = conf.xmlsec_path
885+
except AttributeError:
886+
_path = []
887+
xmlsec_binary = get_xmlsec_binary(_path)
884888
# verify that xmlsec is where it's supposed to be
885889
if not os.path.exists(xmlsec_binary):
886890
#if not os.access(, os.F_OK):

0 commit comments

Comments
 (0)