Project

General

Profile

Bug #67998

l'envoi des messages "compte inutilisé" s'interrompt quand il rencontre un compte sans email

Added by Frédéric Péters 12 days ago. Updated 8 days ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
05 August 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

File "/usr/lib/python3/dist-packages/authentic2/management/commands/clean-unused-accounts.py" in clean_unused_accounts
  97.                 self.send_alert(user, days_to_deletion=days_to_deletion, days_of_inactivity=alert_delay.days)

File "/usr/lib/python3/dist-packages/authentic2/management/commands/clean-unused-accounts.py" in send_alert
  122.                     user=user, days_of_inactivity=days_of_inactivity, days_to_deletion=days_to_deletion

File "/usr/lib/python3/dist-packages/authentic2/journal_event_types.py" in record
  491.         assert user.email

Exception Type: AssertionError

Peut-être modifier le queryset pour passer uniquement sur des comptes qui ont un email ?


Files

Associated revisions

Revision 3cc637b6 (diff)
Added by Frédéric Péters 8 days ago

misc: skip users with no email in clean-unused-accounts (#67998)

History

#1

Updated by Frédéric Péters 9 days ago

  • Assignee set to Frédéric Péters
#2

Updated by Frédéric Péters 9 days ago

#3

Updated by Agate Berriot 8 days ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Frédéric Péters 8 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Je pousse la correction pour ne pas avoir la trace pendant deux semaines.

commit 3cc637b6c885a63aeda68b9d04e7c244587c7962
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Aug 9 07:29:15 2022 +0200

    misc: skip users with no email in clean-unused-accounts (#67998)
#5

Updated by Transition automatique 8 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF