~boots-developers/boots/debian

« back to all changes in this revision

Viewing changes to boots/api/api.py

  • Committer: Max Goodman
  • Date: 2010-03-23 08:42:05 UTC
  • Revision ID: chromakode@gmail.com-20100323084205-2q1cenzwkbwmsu08
Fix bug with new description abstractions where queries returning no rows raised an exception.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
                else:
166
166
                    break
167
167
                
168
 
        yield ResultInfo({"description": RowDescription(cursor.description),
 
168
        yield ResultInfo({"description": RowDescription(cursor.description) 
 
169
                                         if cursor.description else None,
169
170
                          "row_count": cursor.rowcount,
170
171
                          "begin_time": begin_time,
171
172
                          "end_time": time.time()})