Prevent page crash if failed to parse graphs data

This commit is contained in:
Dmitriy Zaporozhets
2013-06-18 18:58:33 +03:00
parent 4e5b3d9aae
commit 60bb351617
+1 -1
View File
@@ -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