From 6d71aa8bc1556d686b8189e88ab6006f08b6bcc2 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Fri, 3 Oct 2014 11:13:10 +0200 Subject: [PATCH] Metadata instance is empty until something has been loaded. So it's better to be explicit. --- tools/mdexport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mdexport.py b/tools/mdexport.py index 348335a..c37f69e 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: