mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -05:00
Add exception handing if logout fails for opensubtitles
This commit is contained in:
parent
54ce291897
commit
7875d45504
@ -97,7 +97,11 @@ class OpenSubtitles(ServiceBase):
|
|||||||
def terminate(self):
|
def terminate(self):
|
||||||
super(OpenSubtitles, self).terminate()
|
super(OpenSubtitles, self).terminate()
|
||||||
if self.token:
|
if self.token:
|
||||||
self.server.LogOut(self.token)
|
try:
|
||||||
|
self.server.LogOut(self.token)
|
||||||
|
except Exception as e:
|
||||||
|
raise ServiceError(str(e))
|
||||||
|
|
||||||
|
|
||||||
def query(self, filepath, languages, moviehash=None, size=None, imdbid=None, query=None):
|
def query(self, filepath, languages, moviehash=None, size=None, imdbid=None, query=None):
|
||||||
searches = []
|
searches = []
|
||||||
|
Loading…
Reference in New Issue
Block a user