mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Fix printing error message to stdout when running the plugin
This commit is contained in:
parent
f84eee6118
commit
1283bec05e
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue