From 1283bec05eb7b1c460dfd0df4b943e58afa7d310 Mon Sep 17 00:00:00 2001 From: Neraud Date: Sun, 30 Jul 2017 09:39:56 +0200 Subject: [PATCH] Fix printing error message to stdout when running the plugin --- plugins/torrent/deluge_ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/torrent/deluge_ b/plugins/torrent/deluge_ index b4f4e99b..27b5d2b4 100644 --- a/plugins/torrent/deluge_ +++ b/plugins/torrent/deluge_ @@ -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")