We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af5daaa + 3d34d7a commit 70031c3Copy full SHA for 70031c3
python/mrtrix3/run.py
@@ -124,10 +124,9 @@ def trigger_continue(self, entries):
124
for entry in entries:
125
# It's possible that the file might be defined in a '--option=XXX' style argument
126
# It's also possible that the filename in the command string has the file extension omitted
127
- if entry.startswith('--') and '=' in entry:
128
- totest = entry.split('=')[1]
129
- else:
130
- totest = entry
+ totest = entry.split('=')[1] \
+ if isinstance(entry, str) and entry.startswith('--') and '=' in entry \
+ else entry
131
if totest in [ self._last_file, os.path.splitext(self._last_file)[0] ]:
132
self._last_file = ''
133
return True
0 commit comments