msg -> self
paulfantom committed
Jul 15, 2016 at 16:15 UTC
117981b8264e76b48780c21178d55292ed5cb950
1 file changed
+2
-2
python.d/python_modules/base.py
+2
-2
@@ -425,13 +425,13 @@ class UrlService(SimpleService):
425
try:
426
f = urllib2.urlopen(self.url, timeout=self.update_every)
427
except Exception as e:
428
- msg.error(str(e))
428
+ self.error(str(e))
429
return None
430
431
try:
432
raw = f.read().decode('utf-8')
433
except Exception as e:
434
- msg.error(str(e))
434
+ self.error(str(e))
435
finally:
436
f.close()
437
return raw