FDSN events to NORDIC format

Hi, everyone.
I´m new using obspy, so I would like to know if someone can help me with this issue.

Actually I´m trying to convert some events I got using FDSN service to NORDIC format. However, when I write the catalog into NORDIC format, I got the error:

AttributeError: ‘NoneType’ object has no attribute ‘max_horizontal_uncertainty’

But I´m able to save the catalog into QuakeML format. Can someone help me?

Thanks for the help"

Fixed in a couple more recent obspy versions: Obspy Event cannont be written in NORDIC format when it comes from a SeisComP3 event located with hypo71 · Issue #3066 · obspy/obspy · GitHub

Although I can see some issues in the code (if hasattr(origin_unc, "..."): which gets hit on None values when it shouldn’t), writing of the uncertainty line eventually runs into try/except: pass and output continue with next line. Room for improvement there but you should be OK after updating.