Update call_center.py

pull/680/head
Vardhaman 2022-06-07 09:35:29 +05:30 committed by GitHub
parent 8e053f4610
commit 9687d312ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class CallCenter(object):
def dispatch_call(self, call): def dispatch_call(self, call):
if call.rank not in (Rank.OPERATOR, Rank.SUPERVISOR, Rank.DIRECTOR): 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 employee = None
if call.rank == Rank.OPERATOR: if call.rank == Rank.OPERATOR:
employee = self._dispatch_call(call, self.operators) employee = self._dispatch_call(call, self.operators)