You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Do not do this if the timeline's not in a ready state, so it doesn't accidentally save it blank
28
28
elif!resource.events_processed:
29
-
print('[Dialogic] Beginning saving timeline. Safety checks will be performed before writing...')
29
+
print('[Dialogic] Beginning saving timeline. Safety checks will be performed before writing, and temporary file will be created and removed if saving is successful...')
30
30
31
31
#prepare everything before writing, we will only open the file if it's successfuly prepared, as that will clear the file contents
printerr("[Dialogic] "+path+": Temporary timeline file contents do not match what was written! Temporary file was saved as .tmp extension, please check to see if it matches your timeline, and rename to .dtl manually.")
70
+
returnERR_INVALID_DATA
71
+
else:
72
+
printerr("[Dialogic] "+path+": Temporary timeline file is empty! Timeline was not saved!")
73
+
dir.remove(path.replace(".dtl", ".tmp"))
74
+
returnERR_INVALID_DATA
75
+
else:
76
+
printerr("[Dialogic] "+path+": Temporary timeline file failed to create! Timeline was not saved!")
77
+
returnERR_INVALID_DATA
78
+
79
+
80
+
56
81
else:
57
82
printerr("[Dialogic] "+path+": Timeline failed to convert to text for saving! Timeline was not saved!")
0 commit comments