Skip to content

AttributeError: 'Payment' object has no attribute 'allowed_methods' #18

@zxpectre

Description

@zxpectre

When passing customized list of allowed payment methods instead of None, flask's Payment in decorator.py seems never to declare self.allowed_methods so later this happends:

  File "/usr/local/lib/python3.5/dist-packages/two1/bitserv/flask/decorator.py", line 131, in contains_payment
    for method in self.allowed_methods:
AttributeError: 'Payment' object has no attribute 'allowed_methods'

Is this a bug or I'm missing something?

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