Metadata instance is empty until something has been loaded.

So it's better to be explicit.
This commit is contained in:
Roland Hedberg
2014-10-03 11:13:10 +02:00
parent 4e65a0b881
commit 6d71aa8bc1

View File

@@ -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: