Skip to content

Commit

Permalink
Check dict before deleting key 'returns'
Browse files Browse the repository at this point in the history
  • Loading branch information
tejado committed Jul 22, 2016
1 parent 51baa8f commit 1f25e90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pgoapi/rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def _parse_main_response(self, response_raw, subrequests):
def _parse_sub_responses(self, response_proto, subrequests_list, response_proto_dict):
self.log.debug('Parsing sub RPC responses...')
response_proto_dict['responses'] = {}
del response_proto_dict['returns']

if 'returns' in response_proto_dict:
del response_proto_dict['returns']

list_len = len(subrequests_list) -1
i = 0
Expand Down

0 comments on commit 1f25e90

Please sign in to comment.