From 151ec816a98514ee35e1bbb7fcf6640b45f78930 Mon Sep 17 00:00:00 2001 From: lian Date: Fri, 7 Oct 2022 22:29:41 +0800 Subject: [PATCH] fix bug when view snapshot file (#5271) Co-authored-by: lian --- seahub/views/file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seahub/views/file.py b/seahub/views/file.py index 239dd91c48..7b3fea4f6c 100644 --- a/seahub/views/file.py +++ b/seahub/views/file.py @@ -893,6 +893,9 @@ def view_lib_file(request, repo_id, path): return render(request, template, return_dict) def view_history_file_common(request, repo_id, ret_dict): + + ret_dict['err'] = '' + # check arguments repo = get_repo(repo_id) if not repo: