Merge branch 'STORM-3164-1.x-branch' of https://github.com/mal/storm into STORM-3164-1.x
STORM-3164: Fix usage of traceback.format_exc in multilang
This closes #2782
diff --git a/storm-multilang/python/src/main/resources/resources/storm.py b/storm-multilang/python/src/main/resources/resources/storm.py
index 9106390..d54acbd 100755
--- a/storm-multilang/python/src/main/resources/resources/storm.py
+++ b/storm-multilang/python/src/main/resources/resources/storm.py
@@ -196,8 +196,8 @@
sync()
else:
self.process(tup)
- except Exception as e:
- reportError(traceback.format_exc(e))
+ except Exception:
+ reportError(traceback.format_exc())
class BasicBolt(object):
def initialize(self, stormconf, context):
@@ -222,11 +222,11 @@
try:
self.process(tup)
ack(tup)
- except Exception as e:
- reportError(traceback.format_exc(e))
+ except Exception:
+ reportError(traceback.format_exc())
fail(tup)
- except Exception as e:
- reportError(traceback.format_exc(e))
+ except Exception:
+ reportError(traceback.format_exc())
class Spout(object):
def initialize(self, conf, context):
@@ -256,5 +256,5 @@
if msg["command"] == "fail":
self.fail(msg["id"])
sync()
- except Exception as e:
- reportError(traceback.format_exc(e))
+ except Exception:
+ reportError(traceback.format_exc())