Log this exception.

If libmodulemd returns some garbage, it will be nice to know what it is.
This commit is contained in:
Ralph Bean
2018-05-08 15:49:51 -04:00
parent c635e371f9
commit 12fcd91bcd

View File

@@ -455,7 +455,7 @@ def load_mmd(yaml, is_file=False):
mmd.upgrade()
except Exception:
error = 'The following invalid modulemd was encountered: {0}'.format(yaml)
log.error(error)
log.exception(error)
raise UnprocessableEntity(error)
return mmd