Skip to content

Commit

Permalink
[hotfix] postgres issue when slice_id is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 11, 2016
1 parent 96d32dd commit d33874b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,9 @@ def import_dashboards(self):
def explore(self, datasource_type, datasource_id):
viz_type = request.args.get("viz_type")
slice_id = request.args.get('slice_id')
slc = db.session.query(models.Slice).filter_by(id=slice_id).first()
slc = None
if slice_id:
slc = db.session.query(models.Slice).filter_by(id=slice_id).first()

error_redirect = '/slicemodelview/list/'
datasource_class = SourceRegistry.sources[datasource_type]
Expand Down

0 comments on commit d33874b

Please sign in to comment.