Skip to content

Commit

Permalink
Merge pull request #64 from benjamin9999/fix_get_arguments
Browse files Browse the repository at this point in the history
Correct arguments in Tornado get_arguments() usage
  • Loading branch information
Natim committed Sep 24, 2015
2 parents 57ff7b5 + 42ea287 commit e1b8ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circusweb/circushttpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def get(self):
@gen.coroutine
def post(self):
endpoints_list = list(self.session.endpoints)
endpoints = self.get_arguments('endpoint_list', [])
endpoints = self.get_arguments('endpoint_list', strip=False)

# If no selection in list
if not endpoints:
endpoints = self.get_arguments('endpoint_direct', [])
endpoints = self.get_arguments('endpoint_direct', strip=False)

if not endpoints:
self.redirect(self.reverse_url('disconnect'))
Expand Down

0 comments on commit e1b8ae0

Please sign in to comment.