From e5a447c4139d29a4525af4ad46b0e397b1585ef8 Mon Sep 17 00:00:00 2001 From: Cyrus Hiatt Date: Mon, 23 Dec 2019 17:15:30 -0800 Subject: [PATCH] lints --- arches/app/views/tile.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arches/app/views/tile.py b/arches/app/views/tile.py index 4c5f6e05ac2..07856761004 100644 --- a/arches/app/views/tile.py +++ b/arches/app/views/tile.py @@ -75,7 +75,6 @@ def handle_save_error(self, e, tile_id="", title=_("Saving tile failed"), messag message += ": {0}".format(e.message) else: message = str(e) - logger.error( title + """ [Tile id: {tile_id}] \ @@ -166,7 +165,7 @@ def post(self, request): response = {"status": "false", "message": [_("Request Failed"), _("Unable to Save. Verify model status is active")]} return JSONResponse(response, status=500) else: - return JSONErrorResponse(_('Request Failed'), _('Permission Denied')) + return JSONErrorResponse(_("Request Failed"), _("Permission Denied")) if self.action == "reorder_tiles": json = request.body @@ -219,7 +218,7 @@ def delete(self, request): try: tile = Tile.objects.get(tileid=data["tileid"]) except ObjectDoesNotExist: - return JSONErrorResponse(_('This tile is no longer available'), _('It was likely already deleted by another user')) + return JSONErrorResponse(_("This tile is no longer available"), _("It was likely already deleted by another user")) user_is_reviewer = user_is_resource_reviewer(request.user) if (user_is_reviewer or tile.is_provisional() is True) and is_active is True: if tile.filter_by_perm(request.user, "delete_nodegroup"): @@ -244,12 +243,14 @@ def delete(self, request): update_system_settings_cache(tile) return JSONResponse(tile) else: - return JSONErrorResponse(_('Request Failed'), _('Permission Denied')) + return JSONErrorResponse(_("Request Failed"), _("Permission Denied")) elif is_active is False: response = {"status": "false", "message": [_("Request Failed"), _("Unable to delete. Verify model status is active")]} return JSONResponse(response, status=500) else: - return JSONErrorResponse(_('Request Failed'), _('You do not have permissions to delete a tile with authoritative data.')) + return JSONErrorResponse( + _("Request Failed"), _("You do not have permissions to delete a tile with authoritative data.") + ) return HttpResponseNotFound()