Remove the 17 months old "temporary glue" reading the traceback
generated and dumped by python-meh to a file. python-meh now passes
the contents of the file, not just the filename.
---
src/report-python/__init__.py | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/src/report-python/__init__.py b/src/report-python/__init__.py
index 6f4f543..34b1ed1 100644
--- a/src/report-python/__init__.py
+++ b/src/report-python/__init__.py
@@ -144,7 +144,7 @@ def createAlertSignature(component, hashmarkername, hashvalue,
summary, alertSig
# used in anaconda / python-meh
def createPythonUnhandledExceptionSignature(**kwargs):
mandatory_args = ["component", "hashmarkername",
"duphash", "reason",
- "description", "exnFileName"]
+ "description"]
for arg in mandatory_args:
if arg not in kwargs:
@@ -164,15 +164,6 @@ def createPythonUnhandledExceptionSignature(**kwargs):
# need to add "release", parse_release() expects format
"<product> release <version>"
pd.add("os_release", product +" release "+ version)
pd.add_basics() # adds product and version + some other required field
- # FIXME: how to handle files out of dump dir??
- # temporary glue: 2011-02-08 (let's see how temporary..)
- exnFileName = kwargs["exnFileName"]
- try:
- inf = open(exnFileName, "r")
- pd.add(os.path.basename(exnFileName), inf.read())
- inf.close()
- except Exception, ex:
- print "Can't add %s to report: %s" % (exnFileName, ex)
return pd
--
1.7.4.4