I want File1.py
to return the error line in File2.py
File1.py:
def find_errors(file_path_of_File2):
print(f'the error is on line {}')
the error is on line 2
File2.py:
print('this is line 1')
print(5/0)
ZeroDivisionError: integer division or modulo by zero
Is this possible?