Skip to content

Commit 07a88a1

Browse files
author
BoboTiG
committed
save(): better use of the callback
1 parent da288bb commit 07a88a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ def save(self,
202202
if '%d' in output:
203203
fname = output.replace('%d', str(i + 1))
204204
self.debug('save', 'fname', fname)
205-
if os.path.isfile(fname) and not callback(fname):
206-
continue
205+
callback(fname)
207206
self.save_img(data=self.get_pixels(monitor),
208207
width=monitor[b'width'],
209208
height=monitor[b'height'],

0 commit comments

Comments
 (0)