diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-10-03 11:13:10 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-10-03 11:13:10 +0200 |
commit | 6d71aa8bc1556d686b8189e88ab6006f08b6bcc2 (patch) | |
tree | 07f7666ec1dcabf1a304b76c20e5a102e981819d /tools | |
parent | 4e65a0b88171452eb8f4d75036230e70e0b9b5a4 (diff) | |
download | pysaml2-6d71aa8bc1556d686b8189e88ab6006f08b6bcc2.tar.gz |
Metadata instance is empty until something has been loaded.
So it's better to be explicit.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mdexport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mdexport.py b/tools/mdexport.py index 348335ad..c37f69e1 100755 --- a/tools/mdexport.py +++ b/tools/mdexport.py @@ -65,7 +65,7 @@ elif args.type == "external": metad = MetaDataExtern(ONTS.values(), ATTRCONV, args.url, sc, cert=args.cert, http=httpc) -if metad: +if metad is not None: metad.load() txt = metad.dumps() if args.output: |