fix limit

This commit is contained in:
Costa Shulyupin 2018-07-21 23:01:11 +03:00
parent aa638b728b
commit bb32eaa711
1 changed files with 3 additions and 2 deletions

View File

@ -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):