need to check for isinstance(int)

This commit is contained in:
Philip Eisenlohr 2021-04-26 17:56:15 -04:00
parent 5567512f73
commit ba938f1746
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ class Result:
if what == 'increments': if what == 'increments':
choice = [c if isinstance(c,str) and c.startswith('increment_') else choice = [c if isinstance(c,str) and c.startswith('increment_') else
self.increments[c] if c<0 else f'increment_{c}' for c in choice] self.increments[c] if isinstance(c,int) and c<0 else
f'increment_{c}' for c in choice]
elif what == 'times': elif what == 'times':
what = 'increments' what = 'increments'
if choice == ['*']: if choice == ['*']: