kopia lustrzana https://gitlab.com/jaywink/federation
Add more error logging to Diaspora mappers failed validation
rodzic
0f1d55829b
commit
3c714efe4a
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import traceback
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
@ -89,6 +90,7 @@ def element_to_objects(element, sender_key_fetcher=None):
|
||||||
"attrs": attrs,
|
"attrs": attrs,
|
||||||
"transformed": transformed,
|
"transformed": transformed,
|
||||||
})
|
})
|
||||||
|
logger.error(traceback.format_stack())
|
||||||
return []
|
return []
|
||||||
# Do child elements
|
# Do child elements
|
||||||
for child in element:
|
for child in element:
|
||||||
|
|
Ładowanie…
Reference in New Issue