Skip to content

Process the exception if pg_config is not found#385

Open
asavchkov wants to merge 1 commit into
masterfrom
except-pg-config
Open

Process the exception if pg_config is not found#385
asavchkov wants to merge 1 commit into
masterfrom
except-pg-config

Conversation

@asavchkov

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/utils.py
try:
pg_config_data = cache_pg_config_data("pg_config")
except Exception:
raise Exception(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

В testgres есть свои исключения - TestgresException, InvalidOperationError.

Наверное лучше будет выкидывать InvalidOperationError, потому что TestgresException везде юзается как базовый класс и вроде в чистом виде нигде не выкидывается.

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.

3 participants