Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Jul 18, 2023
1 parent 1bf4720 commit a3ea161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyccel/ast/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def __init__(self, arg, index):
if not isinstance(arg, (list,
tuple,
PyccelAstNode)):
raise TypeError(f'Unknown type of type(arg).')
raise TypeError(f'Unknown type of {type(arg)}.')
if isinstance(index, int):
index = LiteralInteger(index)
elif not isinstance(index, PyccelAstNode):
raise TypeError(f'Unknown type of type(index).')
raise TypeError(f'Unknown type of {type(index)}.')

self._arg = arg
self._index = index
Expand Down
2 changes: 1 addition & 1 deletion pyccel/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __str__(self):

if self.symbol:
if self.traceback:
info['symbol'] = f' ({repr(symbol)})'
info['symbol'] = f' ({repr(self.symbol)})'
else:
info['symbol'] = f' ({self.symbol})'

Expand Down

0 comments on commit a3ea161

Please sign in to comment.