We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d44854 commit d220318Copy full SHA for d220318
backend/btrixcloud/background_jobs.py
@@ -567,8 +567,8 @@ async def job_finished(
567
await self.handle_delete_replica_job_finished(
568
cast(DeleteReplicaJob, job)
569
)
570
- if job_type == BgJobType.COPY_BUCKET:
571
- org = await self.org_ops.get_org_by_id(oid)
+ if job_type == BgJobType.COPY_BUCKET and job.oid:
+ org = await self.org_ops.get_org_by_id(job.oid)
572
await self.org_ops.update_read_only(org, False)
573
else:
574
print(
0 commit comments