From f6ced5e6a1a219f9f3c2ad9c85e23e7219ba8a48 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sat, 14 Feb 2015 07:37:08 +0100 Subject: Error checking is hard :( --- stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.pl b/stats.pl index 20fee9c..e36c9cb 100755 --- a/stats.pl +++ b/stats.pl @@ -35,7 +35,7 @@ my $group_info = {}; my @group_names = (); my $content = get($score_url); -if (!defined($content)) { +if (!defined($content) || !$content || length $content < 1) { print STDERR "Could not fetch scoreboard!"; exit 1 } -- cgit v1.2.3