[hotfix] 'NoneType' object has no attribute 'upper'

This commit is contained in:
Maxime Beauchemin 2017-03-26 09:28:16 -07:00
parent 59d5fcf88c
commit 398036d77e
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class TableColumn(Model, BaseColumn):
return str((dttm - datetime(1970, 1, 1)).total_seconds() * 1000.0)
else:
s = self.table.database.db_engine_spec.convert_dttm(
self.type, dttm)
self.type or '', dttm)
return s or "'{}'".format(dttm.strftime(tf))