fixed verbose/profile output options

Former-commit-id: ca399cf350
This commit is contained in:
Arthur Lu 2021-08-19 20:58:35 +00:00
parent e4eb824f51
commit 052788afb9

View File

@ -208,16 +208,14 @@ sample_json = """{
def main(send, verbose = False, profile = False):
if verbose or profile:
warnings.filterwarnings("ignore")
sys.stderr = open("errorlog.txt", "w")
warnings.filterwarnings("ignore")
sys.stderr = open("errorlog.txt", "w")
loop_exit_code = 0
loop_stored_exception = None
if verbose:
splash(__version__)
loop_exit_code = 0
loop_stored_exception = None
while True:
try: