louking / members

member activity management
Other
1 stars 2 forks source link

racing team information form: null event date is allowed, causes exception in Racing Team Info Vol view #538

Closed louking closed 1 year ago

louking commented 1 year ago
Error on request:
Traceback (most recent call last):
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\werkzeug\serving.py", line 335, in run_wsgi
    execute(self.server.app)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\werkzeug\serving.py", line 322, in execute
    application_iter = app(environ, start_response)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 2091, in __call__
    return self.wsgi_app(environ, start_response)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 2076, in wsgi_app
    response = self.handle_exception(e)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask_security\decorators.py", line 394, in decorated_view
    return fn(*args, **kwargs)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\views.py", line 84, in view
    return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
  File "c:\Users\lking\Documents\Lou's Software\projects\members\members\venv\lib\site-packages\flask\views.py", line 158, in dispatch_request
    return current_app.ensure_sync(meth)(*args, **kwargs)
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\tables.py", line 2809, in get
    return super(DbCrudApi, self).get()
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\tables.py", line 1263, in get
    return self._renderpage()
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\tables.py", line 991, in _renderpage
    thisentry = self.nexttablerow()
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\tables.py", line 2898, in nexttablerow
    return self.dte.get_response_data(dbrecord)
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\tables.py", line 369, in get_response_data
    data[key] = callback(dbentry)
  File "C:\Users\lking\Documents\Lou's Software\projects\members\members\members\views\admin\racingteam_admin.py", line 262, in <lambda>
    rt_infovol_formmapping['eventdate'] = lambda dbrow: isodate.dt2asc(dbrow.eventdate)
  File "c:\users\lking\documents\lou's software\projects\loutilities\loutilities\loutilities\timeu.py", line 213, in dt2asc
    return datetime.datetime.strftime(dt,self.ascformat)
TypeError: descriptor 'strftime' for 'datetime.date' objects doesn't apply to a 'NoneType' object