[Twisted-Python] Twisted 1.0.4 - `im' bug report

Christopher Armstrong radix at twistedmatrix.com
Mon Apr 21 18:24:42 EDT 2003

On 2003.04.21 17:55, François Pinard wrote:
> Hi.  I intend to become a Twisted novice.  At the beginning of the road, I
> got, unpacked and installed Twisted 1.0.4.  Then, I called `im' in a shell,
> and in the window that appeared, pushed on button `Join Group', to get:
> ---------------------------------------------------------------------->


>   File "/bpi/titan/local/lib/python2.2/site-packages/twisted/im/gtkchat.py", line 101, in on_PlainJoinChat_clicked
>     self.currentAccount.joinGroup(name)
> AttributeError: 'NoneType' object has no attribute 'joinGroup'
> ----------------------------------------------------------------------<

> It looks like a bug to my naive eyes.  Would it be? :-)

Yeah, you weren't logged on, so there was no currentAccount (i.e., it was set 
to None). If you want, you can add a check to say "if not self.currentAccount"
and pop up a nice dialog with an error message :-)

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list