Don't traceback.print_exc.

This commit is contained in:
voussoir 2020-11-15 21:10:01 -08:00
parent bac6efe108
commit ced16d9063
3 changed files with 1 additions and 7 deletions

View file

@ -22,10 +22,7 @@ def get_channels():
@site.route('/channel/<channel_id>/<state>')
def get_channel(channel_id=None, state=None):
if channel_id is not None:
try:
common.ycdldb.add_channel(channel_id)
except Exception:
traceback.print_exc()
common.ycdldb.add_channel(channel_id)
try:
channel = common.ycdldb.get_channel(channel_id)
except ycdl.exceptions.NoSuchChannel:

View file

@ -23,7 +23,6 @@ def post_mark_video_state():
except ycdl.exceptions.NoSuchVideo:
common.ycdldb.rollback()
traceback.print_exc()
flask.abort(404)
except ycdl.exceptions.InvalidVideoState:

View file

@ -177,7 +177,6 @@ class YCDLDBChannelMixin:
channel.refresh()
except Exception as exc:
if skip_failures:
traceback.print_exc()
excs.append(exc)
else:
raise
@ -216,7 +215,6 @@ class YCDLDBChannelMixin:
channel.refresh(force=force, commit=commit)
except Exception as exc:
if skip_failures:
traceback.print_exc()
excs.append(exc)
else:
raise