Hm, this breaks the logic a bit - try/except here is meant for catching exactly the same situation. Also, no check is present regarding the presence of the packaged template. Actually, I think that by modifying this if statement to check exactly for the presence of either the unpacked _or_ packed template, this will do the trick.