Projet

Général

Profil

Bug #23473

notify_new_remote_invoices → AttributeError: 'NoneType' object has no attribute 'tzinfo'

Ajouté par Thomas Noël il y a presque 6 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
27 avril 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Cette erreur reçue par mail :

Subject: [combo] ERROR: error while notifying new remote invoices: 'NoneType' object has no attribute 'tzinfo'

error while notifying new remote invoices: 'NoneType' object has no attribute 'tzinfo'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/combo/apps/lingo/management/commands/notify_new_remote_invoices.py", line 35, i
n handle
    regie.notify_new_remote_invoices()
  File "/usr/lib/python2.7/dist-packages/combo/apps/lingo/models.py", line 282, in notify_new_remote_invoices
    self.notify_invoice(user, invoice))
  File "/usr/lib/python2.7/dist-packages/combo/apps/lingo/models.py", line 240, in notify_invoice
    pay_limit_date = timezone.make_aware(dateparse.parse_datetime(invoice['pay_limit_date']))
  File "/usr/lib/python2.7/dist-packages/django/utils/timezone.py", line 360, in make_aware
    return timezone.localize(value, is_dst=None)
  File "/usr/lib/python2.7/dist-packages/pytz/tzinfo.py", line 303, in localize
    if dt.tzinfo is not None:
AttributeError: 'NoneType' object has no attribute 'tzinfo'

Request repr(): unavailable

Demandes liées

Lié à Combo - Bug #22756: lingo: la date limite de paiement est une dateFermé23 mars 2018

Actions

Historique

#1

Mis à jour par Serghei Mihai il y a presque 6 ans

  • Lié à Bug #22756: lingo: la date limite de paiement est une date ajouté
#2

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

  • Statut changé de Nouveau à Fermé

Ce code n'existe plus ainsi que le problème je pense, ça date d'avant l'introduction de RemoteItem.

Formats disponibles : Atom PDF