Ausgabe auf Konsole ohne Fehlerbehandlung
Code: Alles auswählen
Traceback (most recent call last):
File "sqliteassist.py", line 205, in executeSqlStatement
self.debugMessage(6,'got answer with {} rows'.format(len(sqlResult)))
TypeError: object of type 'NoneType' has no len()
Code: Alles auswählen
Module:sqliteassist
Attribut: executeSqlStatement
object of type 'NoneType' has no len()
Code: Alles auswählen
except TypeError as E:
text = 'Module:sqliteassist\nAttribut: executeSqlStatement'
for s in E.args:
text = text + "\n" + s
print text