fix formatting

This commit is contained in:
maxDorninger
2025-07-10 18:14:07 +02:00
parent 2b92ff1c13
commit ce44a26aa6
2 changed files with 3 additions and 2 deletions

View File

@@ -249,6 +249,7 @@ def upgrade() -> None:
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###

View File

@@ -38,7 +38,7 @@ class SabnzbdDownloadClient(AbstractDownloadClient):
port=str(self.config.port),
api_key=self.config.api_key,
)
self.client._base_url = f"{self.config.host.rstrip('/')}:{self.config.port}/api" # the library expects a /sabnzbd prefix for whatever reason
self.client._base_url = f"{self.config.host.rstrip('/')}:{self.config.port}/api" # the library expects a /sabnzbd prefix for whatever reason
try:
# Test connection
version = self.client.version()
@@ -62,7 +62,7 @@ class SabnzbdDownloadClient(AbstractDownloadClient):
response = self.client.add_uri(
url=str(indexer_result.download_url),
)
if not response["status"] == True:
if not response["status"]:
error_msg = response
log.error(f"Failed to add NZB to SABnzbd: {error_msg}")
raise RuntimeError(f"Failed to add NZB to SABnzbd: {error_msg}")