I have the function which you can see in the picture. How do I only return the last line only, when the exception is raised, without the other lines: traceback.., file"" etc.
def division(k, m):
try:
k / m
except TypeError:
raise ValueError ('hey') from None
return k/ m