Skip to content

Commit

Permalink
Fix bug with Python version3.10 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
minamotorin committed Feb 7, 2022
1 parent 67ca941 commit a457d3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions twint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ def main():


def run_as_command():
version = ".".join(str(v) for v in sys.version_info[:2])
if float(version) < 3.6:
if sys.version_info[:2] < (3,6):
print("[-] TWINT requires Python version 3.6+.")
sys.exit(0)

Expand Down

0 comments on commit a457d3c

Please sign in to comment.