On Tue, Sep 14, 2010 at 2:46 PM,  <aenea...@priest.com> wrote:
>    rgenre = re.split(r';', rf.info["genre"])
> KeyError: 'genre'

Use something like this:

if "genre" in rf.info:
   rgenre = re.split(..., ...)
else:
   # ... no genre

cheers
James


-- 
-- James Mills
--
-- "Problems are solved by method"
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to