Skip to content

Commit

Permalink
hide psutil exception on termux
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhiteh4t committed Aug 27, 2023
1 parent 42048c6 commit 837e623
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions seeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import shutil
import re
import time
from os import path, kill, mkdir, getenv, environ, remove
from os import path, kill, mkdir, getenv, environ, remove, devnull
from json import loads, decoder
from packaging import version

Expand Down Expand Up @@ -95,7 +95,6 @@ def chk_update():
sys.exit()

import socket
import psutil
import importlib
import urllib.parse
from csv import writer
Expand All @@ -104,6 +103,11 @@ def chk_update():
from ipaddress import ip_address
from signal import SIGTERM

# temporary workaround for psutil exception on termux
with open(devnull, 'w') as nf:
sys.stderr = nf
import psutil


def banner():
with open(META_FILE, 'r') as metadata:
Expand Down

0 comments on commit 837e623

Please sign in to comment.