Skip to content

Commit

Permalink
fix parsing json error
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Mar 12, 2024
1 parent 5d9bfda commit 0a91d3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,13 @@ def get_content_from_url(url, n=6):
except:
pass
elif 'outbounds' in response_text:
response_text = re.sub(r'//.*', '', response_text)
try:
response_text = json.loads(response_text)
response_text = json.loads(response.text)
return response_text
except:
pass
response_text = re.sub(r'//.*', '', response_text)
response_text = json.loads(response_text)
return response_text
else:
try:
response_text = tool.b64Decode(response_text)
Expand Down

0 comments on commit 0a91d3f

Please sign in to comment.