parent
f6fdc047cf
commit
2a0a80b09a
1 changed files with 6 additions and 2 deletions
|
|
@ -454,13 +454,17 @@ class osTicket():
|
|||
if not re.match(r'^(\d+)$', _input):
|
||||
continue
|
||||
|
||||
# Valid ID entered, lookup name and verify
|
||||
# Valid ID entered, lookup name
|
||||
try:
|
||||
_name = self.get_ticket_name(_input)
|
||||
except Exception:
|
||||
# Ignore and return None below
|
||||
break
|
||||
if _name:
|
||||
|
||||
# Verify
|
||||
if _name is None:
|
||||
print_error('ERROR: Ticket {} not found.'.format(_input))
|
||||
elif _name:
|
||||
print_standard('You have selected ticket #{} {}'.format(
|
||||
_input, _name))
|
||||
if ask('Is this correct?'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue