Skip to content

Commit

Permalink
Fix pg connect hang
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelros committed May 15, 2024
1 parent 38d59a6 commit d215563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.yaml
*.log
.DS_Store
.huskyrc.json
Expand Down
4 changes: 2 additions & 2 deletions pg-migration-tool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ async def check_connection_for_db(self, db, label) -> bool:
)
self.query_one(label).update(f"{db["db_connection_host"]} connection successful.")
return True
except PostgresError as e:
self.query_one(label).update(f"{db["db_connection_host"]} connection failed with password {db_password}: {e}")
except Exception as e:
self.query_one(label).update(f"{db["db_connection_host"]} connection failed: {e}")
return False

async def decrypt_password(self, db, label) -> str:
Expand Down

0 comments on commit d215563

Please sign in to comment.