Implement handling of empty temp_num_prefix
This commit is contained in:
parent
c75164e013
commit
a96a3dd6c1
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ class Dect:
|
|||
return None
|
||||
|
||||
def load_temp_extensions(self):
|
||||
if self.temp_num_prefix is None:
|
||||
return
|
||||
used_temp_extensions = self.c.find_users(lambda u: u.num.startswith(self.temp_num_prefix))
|
||||
for u in used_temp_extensions:
|
||||
temp_num = u.num
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue