Closed Krinoo closed 8 years ago
Can you be a little more specific on this?
Are you talking about this 500 error?
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/usr/local/anthrocon/plugins/uber/uber/decorators.py", line 128, in with_session
retval = func(*args, session=session, **kwargs)
File "/usr/local/anthrocon/plugins/uber/uber/decorators.py", line 239, in with_restrictions
return func(*args, **kwargs)
File "/usr/local/anthrocon/plugins/uber/uber/decorators.py", line 209, in with_rendering
result = func(*args, **kwargs)
File "/usr/local/anthrocon/plugins/uber/uber/site_sections/groups.py", line 52, in form
raise HTTPRedirect('form?id={}&message={}', group.id, 'Group info uploaded')
uber.utils.HTTPRedirect: (['https://staging.reg.anthrocon.org/anthrocon/groups/form?id=c96b9952-4fb5-4c08-b963-078aab368f1c&message=Group%20info%20uploaded'], 302)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/CherryPy-3.6.0-py3.4.egg/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/CherryPy-3.6.0-py3.4.egg/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/CherryPy-3.6.0-py3.4.egg/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/local/anthrocon/plugins/uber/uber/decorators.py", line 132, in with_session
session.commit()
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/orm/session.py", line 721, in commit
self.transaction.commit()
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/orm/session.py", line 354, in commit
self._prepare_impl()
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/orm/session.py", line 334, in _prepare_impl
self.session.flush()
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/orm/session.py", line 1824, in flush
self._flush(objects)
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/orm/session.py", line 1851, in _flush
self.dispatch.before_flush(self, flush_context, objects)
File "/usr/local/anthrocon/env/lib/python3.4/site-packages/SQLAlchemy-0.8.5-py3.4.egg/sqlalchemy/event.py", line 372, in __call__
fn(*args, **kw)
File "/usr/local/anthrocon/plugins/uber/uber/models.py", line 1438, in _presave_adjustments
model.presave_adjustments()
File "/usr/local/anthrocon/plugins/uber/uber/models.py", line 462, in presave_adjustments
self._misc_adjustments()
File "/usr/local/anthrocon/plugins/uber/uber/models.py", line 479, in _misc_adjustments
self.age_group = self.session.age_group_from_birthdate(self.birthdate)
File "/usr/local/anthrocon/plugins/uber/uber/models.py", line 1172, in age_group_from_birthdate
attendee_age = int((calc_date - birthdate).days / 365.2425)
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'
Fixed a long time ago.
but field is not on screen to update. (maybe UI problem, maybe logic problem in form submit code)