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

elif statment was not properly indented and would have lead to error in the array rendering mode

parent 18fb451b
No related branches found
No related tags found
No related merge requests found
......@@ -734,6 +734,7 @@ class DataBase():
questionsmarks = '?'
for _ in range(1, len(params_list)):
questionsmarks += ',?'
self._logger.info('Insert image')
self.db_cursor.execute(
"""
INSERT OR REPLACE
......
......@@ -102,13 +102,13 @@ class AbstractRender():
msg = msg.format(frame_i, rowid)
self._logger.warning(msg)
continue
elif mode == 'array':
filename = fileformat.format(frame_i)
if os.path.exists(filename):
msg = 'frame_i: {} already exist'
msg = msg.format(frame_i)
self._logger.warning(msg)
continue
elif mode == 'array':
filename = fileformat.format(frame_i)
if os.path.exists(filename):
msg = 'frame_i: {} already exist'
msg = msg.format(frame_i)
self._logger.warning(msg)
continue
# The position-orientatios is valid (none nan)
# and the cmaxminrange has not already been assigned
# so the image need to be rendered
......
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