We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Местами мы ловим исключения без кастомизации и идентифицикации Exception:
try: # if files are attached to another models, they won't be deleted!!! await file_service.remove_files(files_ids_set_to_suspension, FILES_DIR) await log.ainfo( "{}{}{}{}".format(SUSPENSION, suspension_id, SPACE, FILES_UNUSED_IN_FOLDER_REMOVED), suspension_id=suspension_id, files=files_to_delete, ) except Exception as e: # todo кастомизировать и идентифицировать Exception await log.ainfo( "{}{}{}{}".format( SUSPENSION, suspension_id, SPACE, FILES_IDS_INTERSECTION, files_ids_set_to_suspension ), exception=e, suspension_id=suspension_id, files=files_to_delete, intersection=files_ids_set_to_suspension, ) await suspension_service.remove(suspension_id) await log.ainfo("{}{}{}".format(SUSPENSION, suspension_id, DELETED_OK))
src/api/endpoints/suspensions.py
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why
Местами мы ловим исключения без кастомизации и идентифицикации Exception:
How to do
Where
src/api/endpoints/suspensions.py
The text was updated successfully, but these errors were encountered: