Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username/password incorrect with special characters. #11

Open
LogicallyUnfit opened this issue Dec 25, 2021 · 0 comments
Open

Username/password incorrect with special characters. #11

LogicallyUnfit opened this issue Dec 25, 2021 · 0 comments

Comments

@LogicallyUnfit
Copy link

Receiving a Key Error

Traceback (most recent call last):
  File "Z:\scriptpath\qrztest.py", line 24, in <module>
    qrzinfo = qrz.callsign("K8MRD")
  File "C:\PythonPath\lib\site-packages\qrz\qrz_query.py", line 51, in callsign
    self._get_session()
  File "C:\PythonPath\lib\site-packages\qrz\qrz_query.py", line 44, in _get_session
    self._session_key = raw_session['QRZDatabase']['Session']['Key']
KeyError: 'Key'

I dug a little to find that this is thrown when a 'Username/password incorrect' error is sent under the session key, This is apparently also sometimes thrown with correct passwords if they contain specific special characters such as ?@#$%&

I can send a pull request with my fix if you'd like.

there is also a warning from connectionpool for InsecureRequestWarning, not sure if that's new or not?

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

No branches or pull requests

1 participant