File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def files(
142142 a TimeoutError will be raised.
143143 """
144144 start_time = time .monotonic ()
145- added = 0
145+ count = 0
146146 files = glob .iglob (pattern , root_dir = str (self .output ), recursive = True , include_hidden = False )
147147 for file in (Path (self .output , f ) for f in files ):
148148 if timeout and (time .monotonic () - start_time ) > timeout :
@@ -158,11 +158,11 @@ def files(
158158 log .info (f"Skipping { file .name !r} as it has not been modified" )
159159 continue
160160
161- if added > limit :
161+ if count > limit :
162162 log .info (f"Max attachments { limit } reached, skipping remaining files" )
163163 break
164164
165- added += 1
165+ count += 1
166166 log .info (f"Found valid file for upload { file .name !r} " )
167167 yield FileAttachment .from_path (file , relative_to = self .output )
168168
You can’t perform that action at this time.
0 commit comments