Skip to content

Commit

Permalink
Fix typo in PostgresHook (#10529)
Browse files Browse the repository at this point in the history
`PostrgresHook` -> `PostgresHook`
  • Loading branch information
kaxil committed Aug 24, 2020
1 parent 2dab0e2 commit 47265e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/hooks/cloud_sql.py
Expand Up @@ -977,7 +977,7 @@ def cleanup_database_hook(self) -> None:
if not self.db_hook:
raise ValueError("The db_hook should be set")
if not isinstance(self.db_hook, PostgresHook):
raise ValueError(f"The db_hook should be PostrgresHook and is {type(self.db_hook)}")
raise ValueError(f"The db_hook should be PostgresHook and is {type(self.db_hook)}")
conn = getattr(self.db_hook, 'conn')
if conn and conn.notices:
for output in self.db_hook.conn.notices:
Expand Down

0 comments on commit 47265e7

Please sign in to comment.