Skip to content

Commit

Permalink
for style
Browse files Browse the repository at this point in the history
  • Loading branch information
rbi-aap committed Jul 26, 2024
1 parent e5e4d15 commit bc4ca05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion newsroom/companies/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def save_company_permissions(_id):
orig = get_entity_or_404(_id, 'companies')
data = get_json_or_400()
if not csrf_token or csrf_token != expected_csrf_token:
current_app.logger.error(f"Permisson CSRF validation failed: {str(e)}")
current_app.logger.error("Permisson CSRF validation failed:")
return jsonify({"error": "Permisson CSRF token validation failed"}), 403

try:
Expand Down
5 changes: 3 additions & 2 deletions newsroom/wire/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
from newsroom.email import send_email
from newsroom.companies import get_user_company
from newsroom.utils import get_entity_or_404, get_json_or_400, parse_dates, get_type, is_json_request, query_resource, \
get_agenda_dates, get_location_string, get_public_contacts, get_links, get_items_for_user_action, get_entities_elastic_or_mongo_or_404
get_agenda_dates, get_location_string, get_public_contacts, get_links, get_items_for_user_action, \
get_entities_elastic_or_mongo_or_404
from newsroom.notifications import push_user_notification, push_notification
from newsroom.companies import section
from newsroom.template_filters import is_admin_or_internal
Expand Down Expand Up @@ -204,7 +205,7 @@ def download(_ids):
user = get_user(required=True)
_format = flask.request.args.get('format', 'text')
item_type = get_type()
items = get_items_for_user_action_block(_ids.split(','), item_type , filter_func=block_items_by_embedded_data)
items = get_items_for_user_action_block(_ids.split(','), item_type, filter_func=block_items_by_embedded_data)
_file = io.BytesIO()
formatter = app.download_formatters[_format]['formatter']
mimetype = None
Expand Down

0 comments on commit bc4ca05

Please sign in to comment.