pyhn – issue #31 repair

pyhn

New version is out, dealing with issue #31:
$ pyhn
Traceback (most recent call last):
File "/usr/local/bin/pyhn", line 8, in
hn_gui.main()
File "/usr/local/lib/python2.7/dist-packages/pyhn/gui.py", line 85, in main
self.build_interface()
File "/usr/local/lib/python2.7/dist-packages/pyhn/gui.py", line 124, in build_interface
self.cache_manager.refresh()
File "/usr/local/lib/python2.7/dist-packages/pyhn/cachemanager.py", line 44, in refresh
stories = self.api.getTopStories(extra_page=self.extra_page)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 307, in getTopStories
stories += self.getStories(source_latest)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 240, in getStories
storyNumber = self.getStoryNumber(story)
File "/usr/local/lib/python2.7/dist-packages/pyhn/hnapi.py", line 101, in getStoryNumber
return int(source[numberStart:numberEnd])
ValueError: invalid literal for int() with base 10: '1'

Download:
python
…or…
github
…see also:
pyhn

Happy hacking….

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s