add assert

This commit is contained in:
dni ⚡ 2023-04-05 11:38:07 +02:00
parent 6fae6dab92
commit 50149c360c
No known key found for this signature in database
GPG Key ID: 886317704CC4E618

View File

@ -314,7 +314,7 @@ class InstallableExtension(BaseModel):
if ext_zip_file.is_file():
os.remove(ext_zip_file)
try:
assert self.installed_release
assert self.installed_release, "installed_release is none."
download_url(self.installed_release.archive, ext_zip_file)
except Exception as ex:
logger.warning(ex)