Skip to content

Commit

Permalink
[api] Removed summary none
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhibhatg committed Mar 1, 2024
1 parent 09d0b49 commit 1add954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/filebrowser/src/filebrowser/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ def rename(request):
@error_handler
def content_summary(request, path):
path = _normalize_path(path)
response = {'summary': None}
response = {}

if not path:
raise Exception(_('Path parameter is required to fetch content summary'))
raise Exception(_('Path parameter is required to fetch content summary.'))

if not request.fs.exists(path):
return JsonResponse(response, status=404)
Expand Down

0 comments on commit 1add954

Please sign in to comment.