#15 client.execute() causes TypeError

closed-accepted
nobody
None
5
2003-02-11
2002-08-23
No

In playing with gfclient from Zope it appears that
gadfly.client.execute() will cause a TypeError: unpack
non-sequence if no data is returned from the server,
such as for a TABLE CREATE. Checking for data is None,
as per execute_prepared() should probably be done, as
per the following patch:

diff -r1.1 client.py
105c105,108
< (self.description, self.results) = data
---
> if data is None:
> self.description = self.results = None
> else:
> (self.description, self.results) = data

Cheers,

Justin

Discussion

  • Stuart Bishop

    Stuart Bishop - 2003-02-11
    • status: open --> closed
     
  • Stuart Bishop

    Stuart Bishop - 2003-02-11
    • status: closed --> closed-accepted
     
  • Stuart Bishop

    Stuart Bishop - 2003-02-11

    Logged In: YES
    user_id=46639

    Fix added into CVS.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks