Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STORM-3164: Fix usage of traceback.format_exc in multilang (BACKPORT) #2782

Merged
merged 1 commit into from
Jul 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions storm-multilang/python/src/main/resources/resources/storm.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def run(self):
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):
Expand All @@ -222,11 +222,11 @@ def run(self):
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):
Expand Down Expand Up @@ -266,5 +266,5 @@ def run(self):
if msg["command"] == "fail":
self.fail(msg["id"])
sync()
except Exception as e:
reportError(traceback.format_exc(e))
except Exception:
reportError(traceback.format_exc())