Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Error Getting Raffle Items #12

Closed
mew32jfd opened this issue Sep 26, 2021 · 2 comments
Closed

Error Getting Raffle Items #12

mew32jfd opened this issue Sep 26, 2021 · 2 comments

Comments

@mew32jfd
Copy link

mew32jfd commented Sep 26, 2021

Program was working until recently an error in given when attempting too fetch raffle items

Python(3.8.10)

Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
[ERROR GETTING RAFFLES]

--This line of code throws error
raffle_products = json.loads(re.findall(r"{.+[:,].+}", res.text)[1].split("</script>")[0])

raffles.py

@HuskyCodez
Copy link

Program was working until recently an error in given when attempting too fetch raffle items

Python(3.8.10)

Expecting property name enclosed in double quotes: line 1 column 3 (char 2) [ERROR GETTING RAFFLES]

--This line of code throws error raffle_products = json.loads(re.findall(r"{.+[:,].+}", res.text)[1].split("</script>")[0])

raffles.py

probably because the returned value did not match a json type

@Matthew17-21
Copy link
Owner

Better late than never?

Fixed with version 1.1.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants