Skip to content

Commit dcec88c

Browse files
committed
Fix error handling type lookup for cursor.
Fixes #4
1 parent 886e326 commit dcec88c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def _row_to_python(self, row):
860860
u'field {name}: {type}::{value}, Error: ' \
861861
u'{error}'.format(
862862
name=col_desc[0],
863-
type=FIELD_ID_TO_NAME(col_desc[1]),
863+
type=FIELD_ID_TO_NAME[col_desc[1]],
864864
value=col,
865865
error=e
866866
)
@@ -910,7 +910,7 @@ def _row_to_python(self, row):
910910
u'field {name}: {type}::{value}, Error: ' \
911911
u'{error}'.format(
912912
name=col_desc[0],
913-
type=FIELD_ID_TO_NAME(col_desc[1]),
913+
type=FIELD_ID_TO_NAME[col_desc[1]],
914914
value=col,
915915
error=e
916916
)

0 commit comments

Comments
 (0)