Thu 13 Oct 2005 03:07:44 PM UTC, original submission:
- problem when sitting and using the maximum amount (5000):
PokerInterfaceProtocol: dataReceived buy_in5000,00
PokerInterface::event: ('buy_in', '5000,00')
handleBuyIn: ('5000,00',)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/twisted/internet/default.py", line 526, in doSelect
_logrun(selectable, _drdw, selectable, method, dict)
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 65, in callWithLogger
callWithContext({"system": lp}, func, args, *kw)
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 52, in callWithContext
return context.call({ILogContext: newCtx}, func, args, *kw)
File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 43, in callWithContext
return func(args,*kw)
--- <exception caught here> ---
File "/usr/lib/python2.4/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 255, in doRead
return self.protocol.dataReceived(data)
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 507, in dataReceived
self.event(*args)
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 86, in event
data = self.handleBuyIn(data[1:])
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 431, in handleBuyIn
self.publishEvent(INTERFACE_BUY_IN, value)
File "/usr/lib/python2.4/site-packages/twisted/python/dispatch.py", line 49, in publishEvent
cb(args, *kwargs)
File "/usr/lib/python2.4/site-packages/pokerui/pokerrenderer.py", line 1017, in <lambda>
callback = lambda value: self.buyIn(game, value)
File "/usr/lib/python2.4/site-packages/pokerui/pokerrenderer.py", line 1026, in buyIn
amount = int(float(value))))
exceptions.ValueError: invalid literal for float(): 5000,00
- while everything goes normally with an amount of 2000:
PokerInterfaceProtocol: dataReceived buy_in2000
PokerInterface::event: ('buy_in', '2000')
handleBuyIn: ('2000',)
sendPacket type = POKER_BUY_IN(159) serial = 544 game_id = 111 amount = 2000
|