geier/khal — pull request #3 by irbishop (2013-12-14 00:29:23+00:00)
Title: Fixing an issue when an event was deleted.  If the subelement the find w...

...as looking for was not found it would return a Nonetype and crash. The simplest fix I could think of was a try/except but you could also use a bunch of if statements to check if the sub element was found. Also change the if statement at the end to the more pythonic if not vhe.