Commit 399e6341 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix GollumWiki::CouldNotCreateWikiError during tests

parent 03dba1fd
...@@ -16,8 +16,14 @@ class ProjectObserver < BaseObserver ...@@ -16,8 +16,14 @@ class ProjectObserver < BaseObserver
end end
if project.wiki_enabled? if project.wiki_enabled?
begin
# force the creation of a wiki, # force the creation of a wiki,
GollumWiki.new(project, project.owner).wiki GollumWiki.new(project, project.owner).wiki
rescue GollumWiki::CouldNotCreateWikiError => ex
# Prevent project observer crash
# if failed to create wiki
nil
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment