Handle undefined previous version when installing.
[usenet/newsstats.git] / NewsStats.pm
index f0a4066..428719e 100644 (file)
@@ -230,8 +230,9 @@ sub ReadGroupList {
   my %ValidGroups;
   open (my $LIST,"<$Filename") or &Bleat(2,"Cannot read $Filename: $!");
   while (<$LIST>) {
-    s/^(\S+).*$/$1/;
+    s/^\s*(\S+).*$/$1/;
     chomp;
+    next if /^$/;
     $ValidGroups{$_} = '1';
   };
   close $LIST;
This page took 0.010395 seconds and 4 git commands to generate.