synshop / membership.synshop.org

External Membership Management System for SYN Shop
GNU General Public License v3.0
0 stars 0 forks source link

500 when Member with a Free Membership Fee tries to update their info (Full Name, Discord ID) #17

Open munroebot opened 1 year ago

munroebot commented 1 year ago

This happens when a Member with a Free Membership Fee tries to update their info (Full Name, Discord ID)

[2023-09-20 15:04:01,747] ERROR in app: Exception on /update [POST]
Traceback (most recent call last):
  File "/home/membership/membership-dev.synshop.org/venv/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/membership/membership-dev.synshop.org/venv/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/membership/membership-dev.synshop.org/venv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/membership/membership-dev.synshop.org/venv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/membership/membership-dev.synshop.org/server.py", line 56, in decorated_function
    return f(*args, **kwargs)
  File "/home/membership/membership-dev.synshop.org/server.py", line 158, in update_user
    update_member_stripe_account(request.form.to_dict())
  File "/home/membership/membership-dev.synshop.org/synshop/__init__.py", line 239, in update_member_stripe_account
    member["payment_freq"] = user["payFreqRadio"]
KeyError: 'payFreqRadio'