Don't traceback.print_exc.

master
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()
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