> In this case I would simply skip the pandoc_available call and put the rest inside a try...except. The reasoning comes after:

Actually, this is silly and real code duplication. Duh, I haven't recovered from new year's eve yet...