File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44import traceback
55import random
66from tqdm import tqdm
7- from itertools import count
87from pymysql import OperationalError
98from .relational_operand import RelationalOperand , AndList , U
109from . import DataJointError
@@ -117,7 +116,7 @@ def handler(signum, frame):
117116 elif order == "random" :
118117 random .shuffle (keys )
119118
120- call_count = count ()
119+ call_count = 0
121120 logger .info ('Found %d keys to populate' % len (keys ))
122121
123122 make = self ._make_tuples if hasattr (self , '_make_tuples' ) else self .make
@@ -133,7 +132,7 @@ def handler(signum, frame):
133132 jobs .complete (self .target .table_name , self ._job_key (key ))
134133 else :
135134 logger .info ('Populating: ' + str (key ))
136- next ( call_count )
135+ call_count += 1
137136 try :
138137 make (dict (key ))
139138 except (KeyboardInterrupt , SystemExit , Exception ) as error :
You can’t perform that action at this time.
0 commit comments