diff --git a/lib/subliminal/services/opensubtitles.py b/lib/subliminal/services/opensubtitles.py index 65599d24..cc75248e 100644 --- a/lib/subliminal/services/opensubtitles.py +++ b/lib/subliminal/services/opensubtitles.py @@ -97,7 +97,11 @@ class OpenSubtitles(ServiceBase): def terminate(self): super(OpenSubtitles, self).terminate() 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): searches = []