Don't traceback.print_exc.
This commit is contained in:
parent
bac6efe108
commit
ced16d9063
3 changed files with 1 additions and 7 deletions
|
@ -22,10 +22,7 @@ def get_channels():
|
||||||
@site.route('/channel/<channel_id>/<state>')
|
@site.route('/channel/<channel_id>/<state>')
|
||||||
def get_channel(channel_id=None, state=None):
|
def get_channel(channel_id=None, state=None):
|
||||||
if channel_id is not None:
|
if channel_id is not None:
|
||||||
try:
|
common.ycdldb.add_channel(channel_id)
|
||||||
common.ycdldb.add_channel(channel_id)
|
|
||||||
except Exception:
|
|
||||||
traceback.print_exc()
|
|
||||||
try:
|
try:
|
||||||
channel = common.ycdldb.get_channel(channel_id)
|
channel = common.ycdldb.get_channel(channel_id)
|
||||||
except ycdl.exceptions.NoSuchChannel:
|
except ycdl.exceptions.NoSuchChannel:
|
||||||
|
|
|
@ -23,7 +23,6 @@ def post_mark_video_state():
|
||||||
|
|
||||||
except ycdl.exceptions.NoSuchVideo:
|
except ycdl.exceptions.NoSuchVideo:
|
||||||
common.ycdldb.rollback()
|
common.ycdldb.rollback()
|
||||||
traceback.print_exc()
|
|
||||||
flask.abort(404)
|
flask.abort(404)
|
||||||
|
|
||||||
except ycdl.exceptions.InvalidVideoState:
|
except ycdl.exceptions.InvalidVideoState:
|
||||||
|
|
|
@ -177,7 +177,6 @@ class YCDLDBChannelMixin:
|
||||||
channel.refresh()
|
channel.refresh()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
if skip_failures:
|
if skip_failures:
|
||||||
traceback.print_exc()
|
|
||||||
excs.append(exc)
|
excs.append(exc)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
@ -216,7 +215,6 @@ class YCDLDBChannelMixin:
|
||||||
channel.refresh(force=force, commit=commit)
|
channel.refresh(force=force, commit=commit)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
if skip_failures:
|
if skip_failures:
|
||||||
traceback.print_exc()
|
|
||||||
excs.append(exc)
|
excs.append(exc)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue