Skip to content

Commit d29a377

Browse files
committed
fixed migration not working for inline images
1 parent d2602cf commit d29a377

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/migrations/migrate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ def __introduce_access_config(context):
259259
for i in range(len(output_files)):
260260
output_file = output_files[i]
261261

262+
if not isinstance(output_file, str):
263+
continue
264+
262265
for param_name in parameter_names:
263-
output_file = re.sub('\$\$\$' + param_name, '${' + param_name + '}', output_file)
266+
output_file = re.sub('\\$\\$\\$' + param_name, '${' + param_name + '}', output_file)
264267

265268
if output_file != output_files[i]:
266269
output_files[i] = output_file

0 commit comments

Comments
 (0)