diff --git a/app/auth/models.py b/app/auth/models.py index 9126d6eda..c9cfa137f 100644 --- a/app/auth/models.py +++ b/app/auth/models.py @@ -350,7 +350,7 @@ class User(UserMixin, ScoDocModel): date_expiration = args.get("date_expiration") if isinstance(date_expiration, str): args["date_expiration"] = ( - datetime.datetime.fromisoformat(date_expiration) + datetime.fromisoformat(date_expiration) if date_expiration else None )