Backend/Python
TypeError: 'module' object is not callable 해결하기
TypeError: 'module' object is not callable 해결하기
2020.12.19오류코드 #ExceptionExample2.py import MyError def say_nick(nick): if nick == '바보': raise MyError() print(nick, "from Example2") try: # say_nick('천사') say_nick('바보') except MyError: print("허용되지 않는 별명입니다.") # MyError.py class MyError(Exception): pass 오류내용 모듈 객체는 호출이 불가능하다. Traceback (most recent call last): File "C:\Users\iksflow\PycharmProjects\python-study\ch05\ExceptionExample2.py", line 9, in say_..