Skip to content

Commit

Permalink
Hotfix for a bug introduced after adding request answerer. (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
MJafarMashhadi committed Jul 8, 2020
1 parent ecbe55f commit 9cd22b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/v1.0/python/pprzlink/ivy.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ def send_request(self, class_name, request_name, callback, **request_extra_data)
new_id = RequestUIDFactory.generate_uid()
regex = r"^((\S*\s*)?%s %s %s( .*|$))" % (new_id, class_name, request_name)

def data_request_callback(ac_id, msg):
def data_request_callback(ac_id, request_id, msg):
try:
callback(int(ac_id), msg)
callback(ac_id, msg)
except Exception as e:
raise e
finally:
Expand Down
4 changes: 2 additions & 2 deletions lib/v2.0/python/pprzlink/ivy.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ def send_request(self, class_name, request_name, callback, **request_extra_data)
new_id = RequestUIDFactory.generate_uid()
regex = r"^((\S*\s*)?%s %s %s( .*|$))" % (new_id, class_name, request_name)

def data_request_callback(ac_id, msg):
def data_request_callback(ac_id, request_id, msg):
try:
callback(int(ac_id), msg)
callback(ac_id, msg)
except Exception as e:
raise e
finally:
Expand Down

0 comments on commit 9cd22b0

Please sign in to comment.