Index: geouser.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/geouser/geouser.inc,v
retrieving revision 1.23
diff -u -r1.23 geouser.inc
--- geouser.inc	25 Feb 2009 16:56:49 -0000	1.23
+++ geouser.inc	23 Oct 2009 20:21:59 -0000
@@ -129,11 +129,16 @@
       drupal_set_message($e->getMessage(),'error');
     }
 
-    if(!$location instanceof Net_GeoIP_Location){
-
-      throw new Exception("Geographic location of 'IP Address : $addr' cannot be found.");
+    try{
+      if(!$location instanceof Net_GeoIP_Location){
+  
+        throw new Exception("Geographic location of 'IP Address : $addr' cannot be found.");
+      }
+    }catch(Exception $e){
+      watchdog('geouser', $e->getMessage(), array(), 'error');
     }
 
+
     return $location;
   }
 

