Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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