]> arthur.barton.de Git - netdata.git/commitdiff
Merge remote-tracking branch 'firehol/master'
authorpaulfantom <paulfantom@gmail.com>
Wed, 26 Oct 2016 17:48:27 +0000 (19:48 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 26 Oct 2016 17:48:27 +0000 (19:48 +0200)
python.d/nginx_log.chart.py

index 95fb123d2ffe03487d5ecb78880a115864ea17e6..16a9d95713416d5a0a4175434d6e795116857409 100644 (file)
@@ -54,7 +54,10 @@ class Service(LogService):
         regex = self.regex
         for line in raw:
             code = regex.search(line)
-            beginning = code.group(1)[0]
+            try:
+                beginning = code.group(1)[0]
+            except AttributeError:
+                continue
 
             if beginning == '2':
                 data["2xx"] += 1