Skip to content
Snippets Groups Projects
Commit 60bb3516 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Prevent page crash if failed to parse graphs data

parent 4e5b3d9a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,7 @@ class GraphsController < ProjectResourceController
format.js do
@repo = @project.repository
@stats = Gitlab::Git::GitStats.new(@repo.raw, @repo.root_ref)
@log = @stats.parsed_log.to_json
@log = @stats.parsed_log.to_json rescue []
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment