Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Show stack trace #53

Open
eexit opened this issue Apr 29, 2014 · 0 comments
Open

Show stack trace #53

eexit opened this issue Apr 29, 2014 · 0 comments

Comments

@eexit
Copy link

eexit commented Apr 29, 2014

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant