Browse files

Sigh.

  • Loading branch information...
1 parent 07d700a commit 281235db6f6b2a7e5d3362aa00ddd95675b73ea2 @incognico committed Jun 19, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/weather.pm
View
3 modules/weather.pm
@@ -129,7 +129,8 @@ sub on_privmsg {
}
else {
my $geo = Geo::Coder::Google->new(apiver => 3, language => 'en');
- my $input = $geo->geocode(location => "@args");
+
+ my $input = eval { $geo->geocode(location => "@args") };
unless ($input) {
main::msg($target, 'no match');

0 comments on commit 281235d

Please sign in to comment.