so instead of ValueError, I am trying to raise AttributeError. my code so far, wich raises both a ValueError and an AttributeError:
try:
print(int(7.5))
except ValueError as error:
raise AttributeError(f"AttributeError")
so instead of ValueError, I am trying to raise AttributeError. my code so far, wich raises both a ValueError and an AttributeError:
try:
print(int(7.5))
except ValueError as error:
raise AttributeError(f"AttributeError")
A post was merged into an existing topic: Can’t continue the code after raising an Attribute error