diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:47:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:47:19 -0700 |
commit | c4d1a09f914447c3a12706964f5ec056740505f6 (patch) | |
tree | 67526c79d5d024bdde5aa0d2a4ac6ea353aad575 /python/fatcat_web/editing_routes.py | |
parent | 36b930eeb08e5867a9e4c00f04c37ee59d66ab3a (diff) | |
download | fatcat-c4d1a09f914447c3a12706964f5ec056740505f6.tar.gz fatcat-c4d1a09f914447c3a12706964f5ec056740505f6.zip |
warn() -> warning() (deprecated)
Diffstat (limited to 'python/fatcat_web/editing_routes.py')
-rw-r--r-- | python/fatcat_web/editing_routes.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/python/fatcat_web/editing_routes.py b/python/fatcat_web/editing_routes.py index f0b078b1..79a5bc3d 100644 --- a/python/fatcat_web/editing_routes.py +++ b/python/fatcat_web/editing_routes.py @@ -28,7 +28,7 @@ def form_editgroup_get_or_create(api, edit_form): if ae.status == 404: edit_form.editgroup_id.errors.append("Editgroup does not exist") return None - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # TODO: check here that editgroup hasn't been merged already else: @@ -37,7 +37,7 @@ def form_editgroup_get_or_create(api, edit_form): eg = api.create_editgroup( Editgroup(description=edit_form.editgroup_description.data or None)) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # set this session editgroup_id session['active_editgroup_id'] = eg.editgroup_id @@ -62,7 +62,7 @@ def container_create(): try: edit = user_api.create_container(entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to new entity return redirect('/container/{}'.format(edit.ident)) @@ -94,7 +94,7 @@ def container_edit(ident): edit = user_api.update_container(entity.ident, entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to entity revision # TODO: container_rev_view @@ -131,7 +131,7 @@ def file_create(): try: edit = user_api.create_file(entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to new entity return redirect('/file/{}'.format(edit.ident)) @@ -166,7 +166,7 @@ def file_edit(ident): edit = user_api.update_file(entity.ident, entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to entity revision # TODO: file_rev_view @@ -210,7 +210,7 @@ def release_create(): try: edit = user_api.create_release(entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to new release return redirect('/release/{}'.format(edit.ident)) @@ -243,7 +243,7 @@ def release_edit(ident): edit = user_api.update_release(entity.ident, entity, editgroup_id=eg.editgroup_id) except ApiException as ae: - app.log.warn(ae) + app.log.warning(ae) abort(ae.status) # redirect to entity revision # TODO: release_rev_view |