diff --git a/filemgr/filemgr.py b/filemgr/filemgr.py index e6fe7ea..c5d8687 100644 --- a/filemgr/filemgr.py +++ b/filemgr/filemgr.py @@ -70,13 +70,13 @@ class FileMgr: quota, expired_date = await self.get_organization_quota(sor, u.userorgid) if quota is None: - e = Exception(f'{ownerid} has not quota') + e = Exception(f'{u.userorgid} has not quota') exception(f'{e}\n{format_exc()}') raise e quota_used = await self.get_quota_used(sor, u.userorgid) if quota_used + filesize / 1000000 >= quota: self.message = f'{quota=}M, {quota_used=}M {filesize=} overused' - e = Exception(f'{ownerid} quota overflow') + e = Exception(f'{u.userorgid} quota overflow') exception(f'{e}\n{format_exc()}') raise e recs = await sor.R('file',{'hashvalue': hashvalue})