line 217
if rev.isdigit() , that is the error rev is int value and not has that atribute, i changed to
if type(rev)==int: solve the problem
line 217
if rev.isdigit() , that is the error rev is int value and not has that atribute, i changed to
if type(rev)==int: solve the problem