mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5114 from lmskater/develop
[jenkins] decode 'payload' to utf-8 and ignore invalid bytes
This commit is contained in:
commit
0b39829b36
|
@ -27,6 +27,7 @@ def set_description(desc, url):
|
|||
def main():
|
||||
#get payload from os env
|
||||
payload_str = os.environ['payload']
|
||||
payload_str = payload_str.decode('utf-8','ignore')
|
||||
#parse to json obj
|
||||
payload = json.loads(payload_str)
|
||||
|
||||
|
|
Loading…
Reference in New Issue