From 9687d312ac8c23145fcaa3e966622ab93f74d60e Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:35:29 +0530 Subject: [PATCH] Update call_center.py --- solutions/object_oriented_design/call_center/call_center.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/object_oriented_design/call_center/call_center.py b/solutions/object_oriented_design/call_center/call_center.py index 1d5e7bc6..205a9b15 100644 --- a/solutions/object_oriented_design/call_center/call_center.py +++ b/solutions/object_oriented_design/call_center/call_center.py @@ -94,7 +94,7 @@ class CallCenter(object): def dispatch_call(self, call): if call.rank not in (Rank.OPERATOR, Rank.SUPERVISOR, Rank.DIRECTOR): - raise ValueError('Invalid call rank: {}'.format(call.rank)) + raise ValueError(f'Invalid call rank: {call.rank}') employee = None if call.rank == Rank.OPERATOR: employee = self._dispatch_call(call, self.operators)