fix: SyntaxError in exception raising