mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fix printing error message to stdout when running the plugin
This commit is contained in:
parent
f84eee6118
commit
1283bec05e
@ -96,11 +96,14 @@ GPLv2
|
||||
=cut"""
|
||||
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import logging
|
||||
import os
|
||||
import string
|
||||
import sys
|
||||
|
||||
|
||||
try:
|
||||
from deluge.log import setupLogger
|
||||
from deluge.ui.client import client
|
||||
@ -358,7 +361,7 @@ def print_config(mode):
|
||||
|
||||
def fetch_info(mode):
|
||||
if not successful_import:
|
||||
print('Missing imports, cannot run !')
|
||||
print('Missing imports, cannot run !', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
log.debug("Launching tests")
|
||||
|
Loading…
Reference in New Issue
Block a user