[MM bugfix] Put model install errors on the event bus (#6578)

* fix access token lookup

* fix bug preventing model install error events from being reported

---------

Co-authored-by: Lincoln Stein <lstein@gmail.com>
This commit is contained in:
Lincoln Stein
2024-07-03 22:44:34 -04:00
committed by GitHub
parent bb6ff4cf37
commit 0fe92cd406
2 changed files with 8 additions and 1 deletions

View File

@ -848,7 +848,7 @@ class ModelInstallService(ModelInstallServiceBase):
with self._lock:
if install_job := self._download_cache.pop(download_job.id, None):
assert excp is not None
install_job.set_error(excp)
self._set_error(install_job, excp)
self._download_queue.cancel_job(download_job)
# Let other threads know that the number of downloads has changed