lib/totrello.rb in totrello-0.1.6 vs lib/totrello.rb in totrello-0.1.7

- old
+ new

@@ -34,23 +34,19 @@ puts 'Generating your board' begin board = @trello.find_board(todos[:directory]) rescue - board ||= @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') + board = @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') end puts 'Talking to Trello, this is the longest part...' todos[:todo_list].each do |tdl| tdl[:todos].each do |td| - begin - @trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == '' - rescue - puts 'error posting to trello' - end - + puts gen_description(tdl[:file], td) + @trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == '' end end puts "And you're ready to go!" end