Add more error logging to Diaspora mappers failed validation

merge-requests/130/head
Jason Robinson 2017-05-07 21:51:13 +03:00
rodzic 0f1d55829b
commit 3c714efe4a
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
import logging
import traceback
from datetime import datetime
from lxml import etree
@ -89,6 +90,7 @@ def element_to_objects(element, sender_key_fetcher=None):
"attrs": attrs,
"transformed": transformed,
})
logger.error(traceback.format_stack())
return []
# Do child elements
for child in element: