Skip to content

Commit

Permalink
[hotfix] 'NoneType' object has no attribute 'upper'
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 26, 2017
1 parent 59d5fcf commit 398036d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def dttm_sql_literal(self, dttm):
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))


Expand Down

0 comments on commit 398036d

Please sign in to comment.