Skip to content

Commit

Permalink
fix: use sys.exit() and not exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Dec 26, 2020
1 parent 29f11fd commit 2d6cb67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pastepwn/core/pastepwn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import logging
import sys
from queue import Queue
from signal import signal, SIGINT, SIGTERM, SIGABRT
from threading import Event
Expand Down Expand Up @@ -105,7 +106,7 @@ def start(self):
"""Starts the pastepwn instance"""
if self.__exception_event.is_set():
self.logger.error("An exception occured. Aborting the start of PastePwn!")
exit(1)
sys.exit(1)
if not self.scraping_handler.scrapers:
from pastepwn.scraping.pastebin import PastebinScraper
pastebinscraper = PastebinScraper()
Expand Down

0 comments on commit 2d6cb67

Please sign in to comment.