Skip to content

Commit 0b451ab

Browse files
committed
Fix type errors from rebase
1 parent e9167dd commit 0b451ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/btrixcloud/background_jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ async def job_finished(
567567
await self.handle_delete_replica_job_finished(
568568
cast(DeleteReplicaJob, job)
569569
)
570-
if job_type == BgJobType.COPY_BUCKET:
571-
org = await self.org_ops.get_org_by_id(oid)
570+
if job_type == BgJobType.COPY_BUCKET and job.oid:
571+
org = await self.org_ops.get_org_by_id(job.oid)
572572
await self.org_ops.update_read_only(org, False)
573573
else:
574574
print(

0 commit comments

Comments
 (0)