Skip to content

Commit

Permalink
Fix logging mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 13, 2023
1 parent fe20a08 commit 9a9d78f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ciscoconfparse/ccp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3364,7 +3364,7 @@ def __init__(self, text="", result_type=str):

if not isinstance(text, str):
error = f'text="{text}" must be a string.'
loguru.error(error)
logger.error(error)
raise ValueError(error)

self.text = text
Expand Down Expand Up @@ -3524,7 +3524,7 @@ def remove(self, arg):
@property
@logger.catch(reraise=True)
def as_list(self):
return sorted(list(set(self._list)), key=lambda x: x.__hash__(), reverse=False)
return [str(ii) for ii in sorted(list(set(self._list)), key=lambda x: x.__hash__(), reverse=False)]

## Github issue #125
@property
Expand Down Expand Up @@ -3616,7 +3616,7 @@ def __init__(self, text="", result_type=str):

if not isinstance(text, str):
error = f'text="{text}" must be a string.'
loguru.error(error)
logger.error(error)
raise ValueError(error)

self.text = text
Expand Down

0 comments on commit 9a9d78f

Please sign in to comment.