From 53929295219b98ad763f50aeaf6540eb4f7742fc Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:36:40 +0530 Subject: [PATCH] Update call_center.ipynb --- solutions/object_oriented_design/call_center/call_center.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/call_center/call_center.ipynb b/solutions/object_oriented_design/call_center/call_center.ipynb index c540c6a6..803ee9cc 100644 --- a/solutions/object_oriented_design/call_center/call_center.ipynb +++ b/solutions/object_oriented_design/call_center/call_center.ipynb @@ -158,7 +158,7 @@ "\n", " def dispatch_call(self, call):\n", " if call.rank not in (Rank.OPERATOR, Rank.SUPERVISOR, Rank.DIRECTOR):\n", - " raise ValueError('Invalid call rank: {}'.format(call.rank))\n", + " raise ValueError(f'Invalid call rank: {call.rank}')\n", " employee = None\n", " if call.rank == Rank.OPERATOR:\n", " employee = self._dispatch_call(call, self.operators)\n",