PASTA-ELN / pasta-eln

PASTA-ELN with new frontend
https://pasta-eln.github.io/pasta-eln/
Other
7 stars 2 forks source link

Error during eln file export when the organization list is empty #294

Closed HTsybenko closed 1 day ago

HTsybenko commented 1 month ago

1) Go to the Configuration and remove default organization via "-" 2) Try to export any project as an eln file:

Traceback (most recent call last): File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/guiStyle.py", line 127, in self.triggered.connect(lambda : widget.execute(command)) File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/gui.py", line 147, in execute status = exportELN(self.comm.backend, [self.comm.projectID], fileName, docTypes) File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/inputOutput.py", line 503, in exportELN 'affiliation': [{'organization': authors[0]['organizations'][0]['organization'], IndexError: list index out of range

HTsybenko commented 1 day ago

Fixed in 2.6.0b1.