Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontends/stapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
if sys.stdout is None: sys.stdout = open(os.devnull, "w")
if sys.stderr is None: sys.stderr = open(os.devnull, "w")
try: sys.stdout.reconfigure(errors='replace')
except: pass
except Exception: pass
try: sys.stderr.reconfigure(errors='replace')
except: pass
except Exception: pass
script_dir = os.path.dirname(__file__)
sys.path.append(os.path.abspath(os.path.join(script_dir, '..')))
sys.path.append(os.path.abspath(script_dir))
Expand Down
4 changes: 2 additions & 2 deletions frontends/stapp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
if sys.stdout is None: sys.stdout = open(os.devnull, "w")
if sys.stderr is None: sys.stderr = open(os.devnull, "w")
try: sys.stdout.reconfigure(errors='replace')
except: pass
except Exception: pass
try: sys.stderr.reconfigure(errors='replace')
except: pass
except Exception: pass
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

import streamlit as st
Expand Down