##// END OF EJS Templates
transaction: add clarifying comment about why ignoring some error is fine...
marmoute -
r51233:70ca1f09 stable
parent child Browse files
Show More
@@ -150,6 +150,16 b' def _playback('
150 try:
150 try:
151 vfs.unlink(target)
151 vfs.unlink(target)
152 except FileNotFoundError:
152 except FileNotFoundError:
153 # This is fine because
154 #
155 # either we are trying to delete the main file, and it is
156 # already deleted.
157 #
158 # or we are trying to delete a temporary file and it is
159 # already deleted.
160 #
161 # in both case, our target result (delete the file) is
162 # already achieved.
153 pass
163 pass
154 except (IOError, OSError, error.Abort):
164 except (IOError, OSError, error.Abort):
155 if not c:
165 if not c:
General Comments 0
You need to be logged in to leave comments. Login now