Skip to content
New issue

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

Revert "Revert "NEW: запросы в базу"" #10

Merged
merged 1 commit into from
Jul 19, 2021
Merged

Conversation

vvrubel
Copy link
Owner

@vvrubel vvrubel commented Jul 16, 2021

Создала отдельную ветку под запросы в базу, чтобы не мешать их
This reverts commit e835576.

@vvrubel vvrubel requested a review from churnikov July 16, 2021 17:26
Copy link
Collaborator

@churnikov churnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я не вчитывался, но вроде ничего

response = requests.get(url, params=operation_options).json()
return response["PropertyTable"]["Properties"]
except KeyError:
breakpoint()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чего так?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чего так?

да он там иногда падает, если ответ от сервера не тот, что ожидается... я подумаю, как это нормально обработать.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не через breakpoint. Это неправильно, инструмент для дебаг использовать в рантайме целенаправлено

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если ты хочешь "проглотить" ошибку, то используй pass

Copy link
Owner Author

@vvrubel vvrubel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@churnikov ты еще в под посмотришь или мержить?

response = requests.get(url, params=operation_options).json()
return response["PropertyTable"]["Properties"]
except KeyError:
breakpoint()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чего так?

да он там иногда падает, если ответ от сервера не тот, что ожидается... я подумаю, как это нормально обработать.

@vvrubel vvrubel merged commit b032322 into master Jul 19, 2021
@vvrubel vvrubel deleted the db_requests2 branch August 8, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants