Open springjools opened 2 years ago
For some reason, with python 3.10.4, many requests return a string instead of a dictionary. For example this: status, response = j.get_karma() ...
Adding print statements show this difference to python 3.9:
Python 3.10: Status = 200, Response = {"karma":100}, type = <class 'str'>
Python3.9: Status = 200, Response = {'karma': 100}, type = <class 'dict'>
Notice the difference with single and double quote marks in the dict.
If you're reporting a bug, please attach the output of the following commands:
$ pip show jodel_api $ pip -V $ python -V $ python -c "import jodel_api; print(jodel_api.JodelAccount.version); print(jodel_api.JodelAccount.secret)"
Issue
For some reason, with python 3.10.4, many requests return a string instead of a dictionary. For example this: status, response = j.get_karma() ...
Adding print statements show this difference to python 3.9:
Python 3.10: Status = 200, Response = {"karma":100}, type = <class 'str'>
Python3.9: Status = 200, Response = {'karma': 100}, type = <class 'dict'>
Notice the difference with single and double quote marks in the dict.
Environment
If you're reporting a bug, please attach the output of the following commands: