1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Add exception handing if logout fails for opensubtitles

This commit is contained in:
Nils Vogels 2014-05-11 00:51:57 +02:00
parent 54ce291897
commit 7875d45504

View File

@ -97,7 +97,11 @@ class OpenSubtitles(ServiceBase):
def terminate(self):
super(OpenSubtitles, self).terminate()
if 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):
searches = []