BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.52k stars 209 forks source link

library scanning crashes #109

Closed emacsomancer closed 5 years ago

emacsomancer commented 5 years ago

Library scanning fails (for any directory), with:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/lector/threaded.py", line 83, in run
    self.main_window.lib_ref.generate_model('addition', parsed_books, False)
  File "/usr/lib/python3.7/site-packages/lector/library.py", line 66, in generate_model
    _tags = ', '.join([j for j in _tags if j])
TypeError: sequence item 0: expected str instance, collections.OrderedDict found
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = python3.7 path = /usr/bin pid = 19448
KCrash: Arguments: /usr/bin/python3.7 
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...

[1]+  Stopped                 lector
BasioMeusPuga commented 5 years ago

I'm afraid I can't replicate this with any of the books I have. That said, I've added an exception handler, so at least the scanning should be working now.