Skip to content

Commit

Permalink
#7718: fix a KeyError by dict.get method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete committed Oct 2, 2018
1 parent af6b139 commit f484f86
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 f484f86

Please sign in to comment.