This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new b4b924b Wrong rescue
b4b924b is described below
commit b4b924b222ff2a448035988c70d66c562613d3ef
Author: Sebb <[email protected]>
AuthorDate: Tue Jan 7 15:43:39 2020 +0000
Wrong rescue
---
www/board/agenda/daemon/channel.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/daemon/channel.rb
b/www/board/agenda/daemon/channel.rb
index ceef91b..bb59557 100644
--- a/www/board/agenda/daemon/channel.rb
+++ b/www/board/agenda/daemon/channel.rb
@@ -17,8 +17,12 @@ class Channel
@@sockets = Concurrent::Map.new
@@users = Concurrent::Map.new {|map,key| map[key]=[]}
- # rescue value is to help with startup when initialising a new host
- FOUNDATION_BOARD = ASF::SVN['foundation_board'] rescue
'/srv/foundation_board'
+ begin
+ FOUNDATION_BOARD = ASF::SVN['foundation_board']
+ rescue
+ # rescue value is to help with startup when initialising a new host
+ FOUNDATION_BOARD = '/srv/foundation_board'
+ end
# add a new socket/userid pair
def self.add(ws, id)