We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceca9ca + 6d14136 commit a6a9dcaCopy full SHA for a6a9dca
executorlib/standalone/error.py
@@ -1,4 +1,3 @@
1
-
2
import traceback
3
4
@@ -13,10 +12,10 @@ def backend_write_error_file(error: Exception, apply_dict: dict) -> None:
13
12
Returns:
14
None
15
"""
16
- error_log_file = apply_dict.get("error_log_file", None)
+ error_log_file = apply_dict.get("error_log_file")
17
if error_log_file is not None:
18
with open(error_log_file, "a") as f:
19
f.write("function: " + str(apply_dict["fn"]) + "\n")
20
f.write("args: " + str(apply_dict["args"]) + "\n")
21
f.write("kwargs: " + str(apply_dict["kwargs"]) + "\n")
22
- traceback.print_exception(error, file=f)
+ traceback.print_exception(error, file=f)
0 commit comments