I got None in data which is not iterable. Account for that.

This commit is contained in:
Pedro Algarvio 2017-02-18 15:26:45 +00:00
parent 5a952ae861
commit 12e9fb5da6
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -539,7 +539,7 @@ class BaseSaltAPIHandler(tornado.web.RequestHandler, SaltClientsMixIn): # pylin
data = self.deserialize(self.request.body)
self.raw_data = copy(data)
if 'arg' in data and not isinstance(data['arg'], list):
if data and 'arg' in data and not isinstance(data['arg'], list):
data['arg'] = [data['arg']]
if not isinstance(data, list):