some-programs / exitwp

Exitwp is tool primarily aimed for making migration from one or more wordpress blogs to the jekyll blog engine as easy as possible.
686 stars 145 forks source link

Show stack trace #53

Open eexit opened 10 years ago

eexit commented 10 years ago

I was running errors when importing my file and it really bothered me to have a single Parse error on: post title...

I suggest you to add this:

import traceback

// ...

try:
    out.write(html2fmt(i['body'], target_format))
except:
    print "\n Parse error on: " + i['title']
    traceback.print_exc(file=sys.stdout)

So we could have more details about the exception.

Thanks,