Fix exception in exception handler

The exception handler in pronounce_number_en would in turn raise an
exception. This fixes that case.
pull/1775/head
Åke Forslund 2018-08-29 23:58:03 +02:00
parent bd7cd7daee
commit 1e27cff708
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
from mycroft.util.lang.format_common import convert_to_mixed_fraction
import collections
from mycroft.util.log import LOG
NUM_STRING_EN = {
@ -297,7 +298,7 @@ def pronounce_number_en(num, places=2, short_scale=True, scientific=False):
# exception used to catch any unforseen edge cases
# will default back to normal subroutine
except Exception as e:
print('Exception in pronounce_number_en' + e)
LOG.error('Exception in pronounce_number_en: {}' + repr(e))
# check for a direct match
if num in number_names: