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

PyUniSend result error #10

Open
chiganov opened this issue Jan 22, 2019 · 1 comment
Open

PyUniSend result error #10

chiganov opened this issue Jan 22, 2019 · 1 comment

Comments

@chiganov
Copy link

now PyUniSend.call()

...
        try:
            result = result['result']
            if 'error' in result:
                self.errorMessage = result['error']
                self.errorCode = result['code']
        except TypeError:
            pass  # exception for non-iterable (boolean) types
...

should be:

...
       try:
            if 'error' in result:
                self.errorMessage = result['error']
                self.errorCode = result['code']
                result = None
            else:
                result = result['result']
...
@chiganov
Copy link
Author

PyUniSend.http_build_query line 63:

        for name, val in params.items():
            name = name

name = name ?
=)

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