Fix ImportError
This commit is contained in:
parent
ae37e21aeb
commit
e74a4ba2e9
2 changed files with 2 additions and 2 deletions
|
@ -8,6 +8,7 @@ import heapq
|
|||
import xbmc
|
||||
|
||||
from . import utils
|
||||
from Queue import Empty
|
||||
|
||||
LOG = getLogger('PLEX.' + __name__)
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import xbmc
|
|||
from ..plex_api import API
|
||||
from ..plex_db import PlexDB
|
||||
from .. import backgroundthread
|
||||
from ..backgroundthread.Queue import Empty
|
||||
from .. import utils, kodidb_functions as kodidb
|
||||
from .. import itemtypes, artwork, plex_functions as PF, variables as v, state
|
||||
|
||||
|
@ -82,7 +81,7 @@ class ThreadedProcessFanart(backgroundthread.KillableThread):
|
|||
# grabs Plex item from queue
|
||||
try:
|
||||
item = self.queue.get(block=False)
|
||||
except Empty:
|
||||
except backgroundthread.Empty:
|
||||
xbmc.sleep(1000)
|
||||
continue
|
||||
self.queue.task_done()
|
||||
|
|
Loading…
Reference in a new issue