alastair/pymei — comment on commit 43d54518180204afc21de4a039b44dae2e52140f
File: pymei/Components/MeiDocument.py line 147
By ahankinson:

Needs a bit of cleaning:

if not els:
return None
else:
return els[0]

I'm not familiar enough with the assert statement; Can it raise an actual error? I get the feeling that if this condition is reached it will throw a not-very-helpful error.