Index: modules/autotagging_yahoo_terms/autotagging_yahoo_terms.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autotagging/modules/autotagging_yahoo_terms/autotagging_yahoo_terms.module,v
retrieving revision 1.4
diff -u -p -r1.4 autotagging_yahoo_terms.module
--- modules/autotagging_yahoo_terms/autotagging_yahoo_terms.module	24 Jul 2009 17:30:25 -0000	1.4
+++ modules/autotagging_yahoo_terms/autotagging_yahoo_terms.module	27 Jul 2009 01:34:56 -0000
@@ -25,7 +25,13 @@ function autotagging_yahoo_terms_autotag
   if ($appid != '') {
     $data = 'context=' . urlencode($text);
     $response = drupal_http_request($url . '&' . $data, array(), 'POST');
-    if ($response->code != 200) {
+    // Identify when the 24-hour limit is reached.
+    if (strpos($response->data, '<Message>limit exceeded</Message>')) {
+      watchdog('autotagging_yahoo_terms', 'Reached the Yahoo 24-hour query limit, please try again later.', WATCHDOG_SEVERE);
+      return array();
+    }
+    // Identify other errors.
+    elseif ($response->code != 200) {
       watchdog('autotagging_yahoo_terms', 'Received response code '. $response->code .' from Yahoo Terms', WATCHDOG_SEVERE);
       return array();
     }
