Tadashi Okoshi
slash****@users*****
2005年 6月 26日 (日) 21:30:26 JST
Index: affelio/lib/Affelio/App/Admin/FriendsGraph.pm diff -u affelio/lib/Affelio/App/Admin/FriendsGraph.pm:1.3 affelio/lib/Affelio/App/Admin/FriendsGraph.pm:1.4 --- affelio/lib/Affelio/App/Admin/FriendsGraph.pm:1.3 Sun Jun 26 21:10:42 2005 +++ affelio/lib/Affelio/App/Admin/FriendsGraph.pm Sun Jun 26 21:30:26 2005 @@ -4,18 +4,20 @@ # http://affelio.jp/ (Japan) # http://affelio.jp/ (USA and other area) # -# $Id: FriendsGraph.pm,v 1.3 2005/06/26 12:10:42 slash5234 Exp $ +# $Id: FriendsGraph.pm,v 1.4 2005/06/26 12:30:26 slash5234 Exp $ package Affelio::App::Admin::FriendsGraph; { use strict; use lib("../../../../extlib/"); + use Error qw(:try); use lib("../../../"); use Affelio; use Affelio::misc::CGIError; use Affelio::SNS::Handshaker_c; use Affelio::misc::Debug qw(debug_print); + use Affelio::exception::IOException; use Exporter; @Affelio::App::Admin::FriendsGraph::ISA = "Exporter"; @@ -42,15 +44,22 @@ ################################################## #Get peer's friends list. - my $ret = get_F2List(dest_uri =>"$peer_af_id/bin/xml-rpc-serv.cgi", - proto_ver => 1, - timestamp => $last_updated); - debug_print("FriendsGraph::retrieve: \tget_F2List finished."); - debug_print("FriendsGraph::retrieve: \t[$ret]"); + try{ + my $ret = get_F2List(dest_uri =>"$peer_af_id/bin/xml-rpc-serv.cgi", + proto_ver => 1, + timestamp => $last_updated); + debug_print("FriendsGraph::retrieve: \tget_F2List finished."); + debug_print("FriendsGraph::retrieve: \t[$ret]"); + + ################################################## + #Save the F2 list into my DB + $af->{fm}->save_F2List($ret, $peer_af_id); + + }catch Affelio::exception::IOException with{ + + }; + - ################################################## - #Save the F2 list into my DB - $af->{fm}->save_F2List($ret, $peer_af_id); } }