@@ -183,7 +183,7 @@ |
||
183 | 183 | // Handle the error here, e.g. by logging it |
184 | 184 | $attempts++; |
185 | 185 | if ($attempts == $max_attempts) { |
186 | - // Reached max attempts, so throw an exception to indicate failure |
|
186 | + // Reached max attempts, so throw an exception to indicate failure |
|
187 | 187 | throw new Exception('Failed to retrieve data after ' . $max_attempts . ' attempts.'); |
188 | 188 | } |
189 | 189 | sleep(1); // Wait for 1 second before retrying |