effigies / BitTornado

UNMAINTAINED - John Hoffman's fork of the original bittorrent
Other
150 stars 44 forks source link

Fix for stacktrace: #9

Closed HemeraGP closed 9 years ago

HemeraGP commented 9 years ago

Traceback (most recent call last): File "/usr/local/sbin/bittornado/BitTornado/Network/RawServer.py", line 132, in listen_forever self.sockethandler.handle_events(events) File "/usr/local/sbin/bittornado/BitTornado/Network/SocketHandler.py", line 302, in handle_events s.handler.data_came_in(s, data) File "/usr/local/sbin/bittornado/BitTornado/Tracker/HTTPHandler.py", line 145, in data_came_in if not c.data_came_in(data) and not c.closed: File "/usr/local/sbin/bittornado/BitTornado/Tracker/HTTPHandler.py", line 35, in data_came_in self.next_func = self.next_func(val) File "/usr/local/sbin/bittornado/BitTornado/Tracker/HTTPHandler.py", line 67, in read_header r = self.handler.getfunc(self, self.path, self.headers) File "/usr/local/sbin/bittornado/BitTornado/Tracker/track.py", line 1008, in get rsize = self.add_data(infohash, event, ip, paramslist) File "/usr/local/sbin/bittornado/BitTornado/Tracker/track.py", line 709, in add_data s = int(params['requirecrypto']) TypeError: 'function' object has no attribute 'getitem'

effigies commented 9 years ago

Thanks for the bug fix. Added a note to the diff.

Also, your commits are anonymous, which means you won't get credit for your fixes. You can change this in the future by setting your name and email with git config.

effigies commented 9 years ago

Fixed and credited in 218cc34bdf