Don't error out on media.get. fix #3611
This commit is contained in:
1 parent
0b48ad5084
commit
06f49be090
1 file changed
+2
-2
@@ -4,7 +4,7 @@ import time
|
|||||||
import traceback
|
import traceback
|
||||||
from string import ascii_lowercase
|
from string import ascii_lowercase
|
||||||
|
|
||||||
from CodernityDB.database import RecordNotFound
|
from CodernityDB.database import RecordNotFound, RecordDeleted
|
||||||
from couchpotato import tryInt, get_db
|
from couchpotato import tryInt, get_db
|
||||||
from couchpotato.api import addApiView
|
from couchpotato.api import addApiView
|
||||||
from couchpotato.core.event import fireEvent, fireEventAsync, addEvent
|
from couchpotato.core.event import fireEvent, fireEventAsync, addEvent
|
||||||
@@ -146,7 +146,7 @@ class MediaPlugin(MediaBase):
|
|||||||
|
|
||||||
return media
|
return media
|
||||||
|
|
||||||
except RecordNotFound:
|
except (RecordNotFound, RecordDeleted):
|
||||||
log.error('Media with id "%s" not found', media_id)
|
log.error('Media with id "%s" not found', media_id)
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in new issue
Block a user