From 64c7d400ed1bfdd8406941bac7347b16a866ef5e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 12 Aug 2025 17:42:06 +0800 Subject: [PATCH] bugfix --- filemgr/filemgr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})