Skip to content

Commit

Permalink
Add missing space in error message
Browse files Browse the repository at this point in the history
Fixes: #1464
Change-Id: I9dd5a6c48c685d347ffa35f12afb79845c347003
  • Loading branch information
CaselIT committed Apr 24, 2024
1 parent 7a0af05 commit ade17cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alembic/script/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def _generate_create_date(self) -> datetime.datetime:
if self.timezone is not None:
if ZoneInfo is None:
raise util.CommandError(
"Python >= 3.9 is required for timezone support or"
"Python >= 3.9 is required for timezone support or "
"the 'backports.zoneinfo' package must be installed."
)
# First, assume correct capitalization
Expand Down
2 changes: 1 addition & 1 deletion tests/test_script_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_no_zoneinfo_module(self):
with patch("alembic.script.base.ZoneInfo", new=None):
with expect_raises_message(
CommandError,
"Python >= 3.9 is required for timezone support or"
"Python >= 3.9 is required for timezone support or "
"the 'backports.zoneinfo' package must be installed.",
):
self._test_tz(
Expand Down

0 comments on commit ade17cf

Please sign in to comment.