mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 06:34:40 +00:00
update list virus scan records
This commit is contained in:
@@ -1729,10 +1729,15 @@ def sys_virus_scan_records(request):
|
||||
records = []
|
||||
for r in records_all[:per_page]:
|
||||
try:
|
||||
r.repo = seafile_api.get_repo(r.repo_id)
|
||||
except SearpcError:
|
||||
repo = seafile_api.get_repo(r.repo_id)
|
||||
except SearpcError as e:
|
||||
logger.error(e)
|
||||
continue
|
||||
|
||||
if not repo:
|
||||
continue
|
||||
|
||||
r.repo = repo
|
||||
r.repo.owner = seafile_api.get_repo_owner(r.repo.repo_id)
|
||||
records.append(r)
|
||||
|
||||
|
Reference in New Issue
Block a user