lib/iroki/main/main.rb in iroki-0.0.24 vs lib/iroki/main/main.rb in iroki-0.0.25

- old
+ new

@@ -148,11 +148,11 @@ auto_color: nil, display_auto_color_options: nil, newick_f: nil) begin - out_f = Tempfile.new + out_f = Tempfile.new "foo" self.main(color_branches: color_branches, color_taxa_names: color_taxa_names, exact: exact, remove_bootstraps_below: remove_bootstraps_below, @@ -163,11 +163,13 @@ auto_color: auto_color, display_auto_color_options: display_auto_color_options, newick_f: newick_f, out_f: out_f) ensure - out_f.close - out_f.unlink + if out_f + out_f.close + out_f.unlink + end end end def self.main(color_branches: nil, color_taxa_names: nil,