Minor update

This commit is contained in:
Miroslav Stampar
2024-03-04 15:39:58 +01:00
parent 2ba488803a
commit d85e09f163
3 changed files with 8 additions and 4 deletions

View File

@@ -252,6 +252,10 @@ class Format(object):
if versions is None and Backend.getVersionList():
versions = Backend.getVersionList()
# NOTE: preventing ugly (e.g.) "back-end DBMS: MySQL Unknown"
if isListLike(versions) and UNKNOWN_DBMS_VERSION in versions:
versions = None
return Backend.getDbms() if versions is None else "%s %s" % (Backend.getDbms(), " and ".join(filterNone(versions)))
@staticmethod