Use regex to populate requestId XML tag
This commit is contained in:
parent
6e89a22008
commit
19a0179608
@ -280,7 +280,7 @@ def amzn_request_id(f):
|
|||||||
|
|
||||||
# Update request ID in XML
|
# Update request ID in XML
|
||||||
try:
|
try:
|
||||||
body = body.replace('{{ requestid }}', request_id)
|
body = re.sub(r'(?<=<RequestId>).*(?=<\/RequestId>)', request_id, body)
|
||||||
except Exception: # Will just ignore if it cant work on bytes (which are str's on python2)
|
except Exception: # Will just ignore if it cant work on bytes (which are str's on python2)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user