File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- __version__ = "0.0.8.8 "
1
+ __version__ = "0.0.8.9 "
Original file line number Diff line number Diff line change @@ -166,10 +166,13 @@ def _itemize_bib(lst):
166
166
dic ['alias' ] = s [jj :kk ].replace ('{' , '' )
167
167
else :
168
168
if s :
169
- ii = sorted (rfindall (s , '=' ))[0 ]
170
- if s [- 1 ] == ',' :
171
- s = s [:- 1 ]
172
- out = LatexNodes2Text ().latex_to_text (s [ii + 1 :]).strip ()
173
- dic [s [:ii ].strip ()] = out
169
+ try :
170
+ ii = sorted (rfindall (s , '=' ))[0 ]
171
+ if s [- 1 ] == ',' :
172
+ s = s [:- 1 ]
173
+ out = LatexNodes2Text ().latex_to_text (s [ii + 1 :]).strip ()
174
+ dic [s [:ii ].strip ()] = out
175
+ except Exception as e :
176
+ print (f'Error: the following line of the file is not in a parsible format.\n => { s } \n Description: { e } \n ' )
174
177
175
178
return dic
You can’t perform that action at this time.
0 commit comments