zhouqt/KindleSync — Issue #7: The get_post_id for tieba can't work if there no number in the url
Author: zhouqt
Created: 2011-12-09 09:57:32+00:00
State: open

Traceback (most recent call last):
File "/home/dotcloud/code/KindleSync.py", line 233, in
main()
File "/home/dotcloud/code/KindleSync.py", line 207, in main
src.get('output_encode', 'utf-8'))
File "/home/dotcloud/code/KindleSync.py", line 175, in get_title_list
post_id = get_post_id_func(post_link)
File "/home/dotcloud/code/KindleSync.py", line 64, in get_post_id
post_id = int(tmp[-1])
ValueError: invalid literal for int() with base 10: 'activity.html'