Skip to content

Commit cecb1d1

Browse files
author
David Erb
committed
tolerate integer port in config
1 parent 9ef6a1d commit cecb1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dls_normsql/aiomysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, specification, database_definition_object):
5656
self.__host = envvar.value
5757

5858
self.__port = require(s, t, "port")
59-
if self.__port.startswith("$"):
59+
if str(self.__port).startswith("$"):
6060
envvar = Envvar(self.__port[1:], default=3306)
6161
if not envvar.is_set:
6262
raise RuntimeError(

0 commit comments

Comments
 (0)