-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
This reverts commit e835576.
There was a problem hiding this 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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чего так?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чего так?
да он там иногда падает, если ответ от сервера не тот, что ожидается... я подумаю, как это нормально обработать.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не через breakpoint. Это неправильно, инструмент для дебаг использовать в рантайме целенаправлено
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если ты хочешь "проглотить" ошибку, то используй pass
There was a problem hiding this 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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чего так?
да он там иногда падает, если ответ от сервера не тот, что ожидается... я подумаю, как это нормально обработать.
Создала отдельную ветку под запросы в базу, чтобы не мешать их
This reverts commit e835576.