ppf: properly reraise keyboard interrupts
This commit is contained in:
3
ppf.py
3
ppf.py
@@ -44,6 +44,7 @@ def import_from_file(fn, sqlite):
|
||||
def fetch_contents(uri):
|
||||
headers = base_header
|
||||
try: resp = requests.get(uri, timeout=45, headers=headers, verify=False, proxies=proxies)
|
||||
except KeyboardInterrupt as e: raise e
|
||||
except: return ''
|
||||
data = resp.text
|
||||
|
||||
@@ -112,6 +113,7 @@ def proxyleech(sqlite, rows):
|
||||
|
||||
for row in rows:
|
||||
try: content = fetch_contents(row[0])
|
||||
except KeyboardInterrupt as e: raise e
|
||||
except: content = ''
|
||||
|
||||
uniques = []
|
||||
@@ -119,6 +121,7 @@ def proxyleech(sqlite, rows):
|
||||
if p in uniques: continue
|
||||
try:
|
||||
if not is_reserved_ipv4(p.split(':')[0]): uniques.append(p)
|
||||
except KeyboardInterrupt as e: raise e
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user