Metadata instance is empty until something has been loaded.
So it's better to be explicit.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user