From 078fb31f900274a56df236e8b7972674e1404773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=E9veil?= Date: Sun, 29 May 2011 16:52:08 +0200 Subject: [PATCH] fix transmission error handling --- plugins/other/transmission | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/other/transmission b/plugins/other/transmission index c46b1613..ad3e8e79 100755 --- a/plugins/other/transmission +++ b/plugins/other/transmission @@ -59,17 +59,21 @@ find this plugin on github at http://github.com/VolatileMesh/munin-plugins =head1 VERSION - 1.0 + 1.1 =head1 CHANGELOG =head2 1.0 - 2010/11/12 first release + +=head2 1.1 - 2011/05/29 + + fix transmission error handling =cut """ -__version__ = '1.0' +__version__ = '1.1' import os, sys @@ -137,7 +141,7 @@ def fetch(): try: client = transmissionrpc.Client(host, port=port, user=user, password=passwd) - except transmissionrpc.transmission.TransmissionError, err: + except transmissionrpc.TransmissionError, err: print err sys.exit(1)