Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

port can be none

  • Loading branch information...
commit fe9ca0dba6a2285b0430e197a8b4a11dcc92db88 1 parent e277d86
@wil authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 shorty/config.py
View
4 shorty/config.py
@@ -29,12 +29,12 @@
else:
assert False, "Unknown scheme %s" % url.scheme
- SQLALCHEMY_DATABASE_URI = '%s:///%s:%s@%s:%s/%s' % (
+ SQLALCHEMY_DATABASE_URI = '%s:///%s:%s@%s%s/%s' % (
scheme,
url.username,
url.password,
url.hostname,
- url.port,
+ ':%s' % url.port if url.port else '',
url.path[1:],
)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.