Skip to content

Commit 5497220

Browse files
authored
Remove matplotlib warning
This warning gets printed every time any piece of the package is imported, even pieces unrelated to plotting. Since the code already throws an ImportError if `plot()` is used without matplotlib being installed, I don't think the warning is necessary.
1 parent ce261ce commit 5497220

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

prometheus_api_client/metric.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
_MPL_FOUND = True
1414
except ImportError as exce:
1515
_MPL_FOUND = False
16-
print("WARNING: Plotting will not work as matplotlib was not found")
1716

1817

1918
class Metric:

0 commit comments

Comments
 (0)