You have to apply the function to sys `from sys import exit`
You have to apply the function to sys
from sys import exit