Skip to content

Commit 8cec9be

Browse files
committed
Fix NameError in unit tests in py3
1 parent 4d6bcfd commit 8cec9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
try:
3434
stringTypes = (str, unicode)
35-
except TypeError:
35+
except NameError:
3636
stringTypes = (str,)
3737

3838
import MySQLdb as sql

0 commit comments

Comments
 (0)