Skip to content

Commit

Permalink
Merge pull request #30 from s-t-e-v-e-n-k/test-preconditions
Browse files Browse the repository at this point in the history
Correct some small issues
  • Loading branch information
iwalton3 authored Nov 8, 2023
2 parents e4f0774 + 1c4a127 commit c3cbccc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jellyfin_apiclient_python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def send_request(self, url, path, method="get", timeout=None, headers=None, data
}

# Changed to use non-Kodi specific setting.
if self.config.data.get('auth.ssl') == False:
if self.config.data.get('auth.ssl') is False:
request_settings["verify"] = False

LOG.info("Sending %s request to %s" % (method, path))
Expand Down
2 changes: 1 addition & 1 deletion jellyfin_apiclient_python/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def clear_data(self):
self.user = None
credentials = self.credentials.get_credentials()
credentials['Servers'] = list()
self.credentials.get_credentials(credentials)
self.credentials.set_credentials(credentials)

self.config.auth(None, None)

Expand Down
2 changes: 1 addition & 1 deletion jellyfin_apiclient_python/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def request(self, data, session=None, dest_file=None):
LOG.error("Request missing Schema. " + str(error))
raise HTTPException("MissingSchema", {'Id': self.config.data.get('auth.server', "None")})

except Exception as error:
except Exception:
raise

else:
Expand Down
2 changes: 1 addition & 1 deletion jellyfin_apiclient_python/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def on_message(self, ws, message):

if data is None:
data = {}
elif type(data) is not dict:
elif not isinstance(data, dict):
data = {"value": data}

if not self.client.config.data['app.default']:
Expand Down

0 comments on commit c3cbccc

Please sign in to comment.