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

Closed
opened 6 years ago by whilelm · 0 comments
whilelm commented 6 years ago

$ ./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.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.