Skip to content

Commit

Permalink
#7718: fix a KeyError by dict.get method (#7814)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete authored and LeeTZ committed Oct 2, 2018
1 parent b950d7a commit f8b14e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beakerx/beakerx/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def post(self):
content = json.dumps(data)
params = json.loads(content)

type = params['type']
type = params.get('type')
url = params['url']
if type == "python":
self.handle_python(content, url)
Expand Down

0 comments on commit f8b14e1

Please sign in to comment.