Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit f40595933812afd9d2093df1a806697abff4beb2
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Oct 17 13:48:30 2013 +0200
W:301,16: Unnecessary pass statement (unnecessary-pass)
---------------------------------------------------------------
backend/dispatcher.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index 1c9a3e4..123d065 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -132,6 +132,7 @@ class Worker(multiprocessing.Process):
content['what'] = what
if self.opts.fedmsg_enabled:
fedmsg.publish(modname="copr", topic=topic, msg=content)
+ # pylint: disable=W0703
except Exception, e:
# XXX - Maybe log traceback as well with traceback.format_exc()
self.callback.log('failed to publish message: %s' % e)
@@ -297,7 +298,6 @@ class Worker(multiprocessing.Process):
fedmsg.init(name="relay_inbound",
cert_prefix="copr", active=True)
except Exception, e:
self.callback.log('failed to initialize fedmsg: %s' % e)
- pass # But continue on happily.
status = 1
job.started_on = time.time()