Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

TypeError: strptime() argument 1 must be string, not None #155

Open
lordfriend opened this issue Oct 6, 2019 · 0 comments
Open

TypeError: strptime() argument 1 must be string, not None #155

lordfriend opened this issue Oct 6, 2019 · 0 comments

Comments

@lordfriend
Copy link
Owner

https://sentry.io/organizations/nyasoft/issues/628140465/?referrer=github_plugin

TypeError: strptime() argument 1 must be string, not None
(1 additional frame(s) were not displayed)
...
  File "flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "flask_login/utils.py", line 261, in decorated_view
    return func(*args, **kwargs)
  File "service/auth.py", line 14, in func_wrapper
    return func(*args, **kwargs)
  File "routes/admin.py", line 129, in update_episode
    return admin_service.update_episode(episode_id, json.loads(request.get_data(True, as_text=True)))
  File "service/admin.py", line 436, in update_episode
    episode.airdate = datetime.strptime(episode_dict.get('airdate'), '%Y-%m-%d')

strptime() argument 1 must be string, not None
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant