1
0
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:
lian
2015-11-18 10:18:34 +08:00
parent 4cccfd1423
commit 61513e16f8

View File

@@ -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)