diff --git a/modules/Twitter.py b/modules/Twitter.py index 368f744..b448e6b 100644 --- a/modules/Twitter.py +++ b/modules/Twitter.py @@ -138,12 +138,17 @@ class Twitter(Module): user = match.group(1) index = match.group(2) - if index: - index = int(index) - if index > 0: + try: + if index: + index = int(index) + if index > 0: + index = 0 + else: index = 0 - else: + except ValueError as e: + print('Couldn\'t convert index: ' + str(e)) index = 0 + count = (-1*index) + 1 try: