Skip to content

Commit 20e0a54

Browse files
fstagnichrisburr
andauthored
fix: simpler exception printing
Co-authored-by: Chris Burr <[email protected]>
1 parent 3fde432 commit 20e0a54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/DIRAC/RequestManagementSystem/private/RequestTask.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ def __call__(self):
403403
if operation.Status != "Failed":
404404
operation.Status = "Failed"
405405
self.request.Error = "Job no longer exists"
406-
except Exception as e:
407-
error = str(e)
408-
self.log.exception("hit by exception:", "%s" % error)
406+
except Exception as error:
407+
self.log.exception("hit by exception:", error)
409408
if pluginName:
410409
if self.rmsMonitoring:
411410
self.rmsMonitoringReporter.addRecord(

0 commit comments

Comments
 (0)