Skip to content
Snippets Groups Projects
Commit 801f5690 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Import errors corrected

parent 644c094b
No related branches found
No related tags found
No related merge requests found
......@@ -9,13 +9,13 @@ import tempfile
from navipy.scripts import parser_logger, args_to_logparam
# Following need to be imported in blender as well
from navipy.sensors.renderer import BlenderRender
from navipy.tools.trajectory import Trajectory
from navipy.trajectories import Trajectory
from navipy import logger
importwithinblender = [
'from navipy.sensors.renderer import BlenderRender',
'from navipy.tools.trajectory import Trajectory',
'from navipy.trajectories import Trajectory',
'from navipy import logger']
......
......@@ -59,7 +59,8 @@ class AbstractRender():
self._logger.exception(msg)
raise TypeError(msg)
if not isinstance(trajectory, Trajectory):
msg = 'trajectory should be navipy Trajectory'
msg = 'trajectory should be {}'.format(Trajectory)
msg += 'and not {}'.format(type(trajectory))
self._logger.exception(msg)
raise TypeError(msg)
# Create the directory name if it does
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment