Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 4, 2025. It is now read-only.
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Reports - max_count #80

Copy link
Copy link
@Ldvt

Description

@Ldvt
Issue body actions

Hello,
I have (had) an issue with Reports.get_report_list()

If I call get_report_list(max_count=100), I run into the error

File "/home/amzteu/app/bin/mws.py", line 85, in calc_request_description
encoded_value = quote(params[key], safe='-_.~')
File "/usr/lib64/python2.7/urllib.py", line 1280, in quote
if not s.rstrip(safe):
AttributeError: 'int' object has no attribute 'rstrip'

After some debug, this can be easily fixed by calling
get_report_list(max_count='100')
Basically passing a text instead of an integer (line 438, param max_count)

In my opinion max_count makes more sense as a number, so it would be better to edit line 444 into MaxCount=str(max_count))

Thanks,
Alberto

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.