[파이썬 에러]Exception 정의 후 IndentationError: expected an indented block 커스텀 예외를 만들기 위해 Class 정의 후 공란으로 두었더니 들여쓰기 에러가 발생했다.IndentationError: expected an indented block 이처럼 클래스를 정의하고 내부를 비워둘 경우 pass를 적거나, 주석을 달아야 한다. 해결방법 1 class MyException(Exception): pass 여기서 pass의 의미는 try문 안에서 MyException(에러)가 발생할 경우에 오류를 그냥 회피하겠다는 뜻이다. 해결방법 2 class MyException(Exception): """pass"""