Просмотр исходного кода

Change raise NotImplemented to raise NotImplementedError (#345)

Christian Clauss 5 лет назад
Родитель
Сommit
e50f26960d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      solutions/object_oriented_design/call_center/call_center.py

+ 1 - 1
solutions/object_oriented_design/call_center/call_center.py

@@ -66,7 +66,7 @@ class Director(Employee):
         super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)
 
     def escalate_call(self):
-        raise NotImplemented('Directors must be able to handle any call')
+        raise NotImplementedError('Directors must be able to handle any call')
 
 
 class CallState(Enum):