Browse Source

pandas collector replace `self.warn()` with `self.warning()` (#14736)

Andrew Maguire 2 years ago
parent
commit
8c602ff5db
1 changed files with 2 additions and 2 deletions
  1. 2 2
      collectors/python.d.plugin/pandas/pandas.chart.py

+ 2 - 2
collectors/python.d.plugin/pandas/pandas.chart.py

@@ -53,10 +53,10 @@ class Service(SimpleService):
         """ensure charts and dims all configured and that we can get data"""
 
         if not HAS_REQUESTS:
-            self.warn('requests library could not be imported')
+            self.warning('requests library could not be imported')
 
         if not HAS_SQLALCHEMY:
-            self.warn('sqlalchemy library could not be imported')
+            self.warning('sqlalchemy library could not be imported')
 
         if not self.chart_configs:
             self.error('chart_configs must be defined')