Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix confused handling of replication ports in the DB (#420)
It's niche, but if no replication base url was configured and a peer was configured with a NULL port in the db, then we would try to format None as an integer and get a TypeError for our troubles. Spotted by work in progress elsewhere to make Sydent pass mypy --strict. Fixes #419. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix misleading logging and potential TypeErrors related to replication ports in Sydent's database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters