Projet

Général

Profil

Development #44356

py3 : erreur import utilisateurs csv

Ajouté par Emmanuel Cazenave il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
23 juin 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

error during report g54a6hnpebc5tirmz7qysdcbby:d5jabcdiw5hzzdje2yqaigxmt4 run
Traceback (most recent call last):
  File "/home/cazino/src/authentic/src/authentic2/manager/user_import.py", line 227, in thread_worker
    with publik_provisionning():
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/home/cazino/src/authentic/src/authentic2/manager/user_import.py", line 209, in publik_provisionning                                                                                                      
    with contextlib.nested(*managers):
AttributeError: module 'contextlib' has no attribute 'nested'

Fichiers

Révisions associées

Révision 27e8f2f8 (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

user_import: do not use contextlib.nested() (#44356)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

  • Assigné à mis à Benjamin Dauvergne
#2

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

Je ne sais pas pourquoi j'ai utilisé contextlib.nested() dans cette situation.

#3

Mis à jour par Emmanuel Cazenave il y a presque 4 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 27e8f2f8feae36b043880d1a514a18e8a6e2b6de
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue Jun 23 15:55:03 2020 +0200

    user_import: do not use contextlib.nested() (#44356)
#5

Mis à jour par Frédéric Péters il y a presque 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF