Better mod print. It gives the line number, file name in which error occured.
(text_output, color)
| 28 | |
| 29 | @staticmethod |
| 30 | def mod_print(text_output, color): |
| 31 | """ |
| 32 | Better mod print. It gives the line number, file name in which error occured. |
| 33 | """ |
| 34 | stack = traceback.extract_stack() |
| 35 | filename, line_no, func_name, text = stack[-2] |
| 36 | formatted_message = f"{filename}:{line_no}: {text_output}" |
| 37 | print(color + formatted_message + util.ENDC) |
| 38 | |
| 39 | @staticmethod |
| 40 | def print_summary(results_dict): |