Skip to content

Commit

Permalink
feat: added CTRL+C handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Datalux committed Aug 26, 2020
1 parent 75b23d7 commit c2c3c3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
from src import printcolors as pc
import sys
import signal


def printlogo():
Expand Down Expand Up @@ -63,6 +64,13 @@ def cmdlist():
print("Get a list of user who commented target's photos")


def signal_handler(sig, frame):
pc.printout("\nGoodbye!\n", pc.RED)
sys.exit(0)


signal.signal(signal.SIGINT, signal_handler)

printlogo()

parser = argparse.ArgumentParser(description='Osintgram is a OSINT tool on Instagram. It offers an interactive shell '
Expand Down

0 comments on commit c2c3c3e

Please sign in to comment.