From e52aa50fe65fb0bddea469ea894fc302b408679d Mon Sep 17 00:00:00 2001 From: zhengxie Date: Mon, 13 Feb 2017 16:57:01 +0800 Subject: [PATCH] [notificaion] Handle the case that filename contains : --- .../notifications/management/commands/notify_admins_on_virus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/notifications/management/commands/notify_admins_on_virus.py b/seahub/notifications/management/commands/notify_admins_on_virus.py index e3ddd1cb24..3d6074e5e8 100644 --- a/seahub/notifications/management/commands/notify_admins_on_virus.py +++ b/seahub/notifications/management/commands/notify_admins_on_virus.py @@ -75,7 +75,7 @@ class Command(BaseCommand): ) def email_repo_owner(self, repo_file): - repo_id, file_path = repo_file.split(':') + repo_id, file_path = repo_file.split(':', 1) owner = seafile_api.get_repo_owner(repo_id) if not owner: return