#2 exception AttributeError: 'NoneType' object has no attribute 'nom'

Fermé
Créé il y a 6 ans par whilelm · 0 commentaires
whilelm a commenté il y a 6 ans

$ ./himport/venv/bin/himport -y 2017

Traceback (most recent call last):

File "./himport/venv/bin/himport", line 11, in <module>                                                                      
  load_entry_point('himport', 'console_scripts', 'himport')()                  
File "/home/whilelm/himport/himport/cli.py", line 101, in main                                                   
  do_sqlalchemy(options)                                                       
File "/home/whilelm/himport/himport/cli.py", line 88, in do_sqlalchemy                                              
  Writer.write("bank", bank_journal, options['years'])                         
File "/home/whilelm/himport/himport/dolibarrWriter.py", line 28, in write                   
  f.write(entry.get_ledger())                                                  
File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 201, in get_ledger
  s_description = self.get_description(self.e)                                                                                              
File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 176, in get_description
  s_nom = e.url_company.societe.nom                                                                                                         

AttributeError: 'NoneType' object has no attribute 'nom'

Je ne sais comment identifier la donnée qui pose problème.

$ `./himport/venv/bin/himport -y 2017` Traceback (most recent call last): File "./himport/venv/bin/himport", line 11, in <module> load_entry_point('himport', 'console_scripts', 'himport')() File "/home/whilelm/himport/himport/cli.py", line 101, in main do_sqlalchemy(options) File "/home/whilelm/himport/himport/cli.py", line 88, in do_sqlalchemy Writer.write("bank", bank_journal, options['years']) File "/home/whilelm/himport/himport/dolibarrWriter.py", line 28, in write f.write(entry.get_ledger()) File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 201, in get_ledger s_description = self.get_description(self.e) File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 176, in get_description s_nom = e.url_company.societe.nom AttributeError: 'NoneType' object has no attribute 'nom' Je ne sais comment identifier la donnée qui pose problème.
Philippe Le Brouster a référencé ce problème à partir d'un commit il y a 6 ans
Connectez-vous pour rejoindre cette conversation.
Pas d'étiquette
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.