fix limit
This commit is contained in:
parent
aa638b728b
commit
bb32eaa711
|
@ -31,9 +31,10 @@ def print_limited(a):
|
||||||
print(a)
|
print(a)
|
||||||
global n
|
global n
|
||||||
n += 1
|
n += 1
|
||||||
if n > limit:
|
if n > limit + 1:
|
||||||
print('Reached limit')
|
print('...')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
# raise(Exception('Reached limit'))
|
||||||
|
|
||||||
|
|
||||||
def log(*args, **kwargs):
|
def log(*args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue