[BioRuby-cvs] bioruby/sample biofetch.rb,1.15,1.16

Katayama Toshiaki k at pub.open-bio.org
Sun Aug 7 06:02:43 EDT 2005


Update of /home/repository/bioruby/bioruby/sample
In directory pub.open-bio.org:/tmp/cvs-serv27184/sample

Modified Files:
	biofetch.rb 
Log Message:
* bget method is fixed to surely confirm that the returned value exists.


Index: biofetch.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/sample/biofetch.rb,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** biofetch.rb	24 Aug 2004 00:08:54 -0000	1.15
--- biofetch.rb	7 Aug 2005 10:02:41 -0000	1.16
***************
*** 86,93 ****
      id_list.each do |query_id|
        entry_id = "#{db}:#{query_id}"
!       if result = serv.get_entries([entry_id])
!         results << result
!       else
          error4(query_id, db)
        end
      end
--- 86,94 ----
      id_list.each do |query_id|
        entry_id = "#{db}:#{query_id}"
!       result = serv.get_entries([entry_id])
!       if result.empty?
          error4(query_id, db)
+       else
+         results << result
        end
      end



More information about the bioruby-cvs mailing list