mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix error handling in upsert_job_cache method
This commit is contained in:
parent
0093647c51
commit
f629c8455b
1 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,8 @@ class Job:
|
|||
|
||||
try:
|
||||
with LOCK:
|
||||
if self.db.upsert_job_cache(service_id, name, content, job_name=job_name or self.job_name, checksum=checksum): # type: ignore
|
||||
err = self.db.upsert_job_cache(service_id, name, content, job_name=job_name or self.job_name, checksum=checksum) # type: ignore
|
||||
if err:
|
||||
ret = False
|
||||
|
||||
if ret and isinstance(file_cache, Path) and delete_file and file_cache != cache_path:
|
||||
|
|
|
|||
Loading…
Reference in a new issue