Skip to content

Commit

Permalink
Prevent page crash if failed to parse graphs data
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaporozhets committed Jun 18, 2013
1 parent 4e5b3d9 commit 60bb351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/graphs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def show
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
Expand Down

0 comments on commit 60bb351

Please sign in to comment.