Skip to content

Commit 6d71aa8

Browse files
author
Roland Hedberg
committed
Metadata instance is empty until something has been loaded.
So it's better to be explicit.
1 parent 4e65a0b commit 6d71aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mdexport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
metad = MetaDataExtern(ONTS.values(), ATTRCONV, args.url,
6666
sc, cert=args.cert, http=httpc)
6767

68-
if metad:
68+
if metad is not None:
6969
metad.load()
7070
txt = metad.dumps()
7171
if args.output:

0 commit comments

Comments
 (0)