Fix for check if a parameter is None.

This commit is contained in:
Hans Hörberg
2015-10-01 08:15:15 +02:00
parent ae9d27e510
commit ffe4be1722

View File

@@ -90,7 +90,7 @@ for line in open(args.conf).readlines():
metad = MetaDataExtern(ONTS.values(), ATTRCONV, spec[1], metad = MetaDataExtern(ONTS.values(), ATTRCONV, spec[1],
sc, cert=spec[2], http=httpc, **kwargs) sc, cert=spec[2], http=httpc, **kwargs)
if metad: if metad is not None:
try: try:
metad.load() metad.load()
except: except: