Output of errormessage for invalid CALIBRE_PORT value

This commit is contained in:
Ozzieisaacs 2019-02-16 10:18:32 +01:00
parent 56826f67fc
commit 237502ae6b

View File

@ -64,10 +64,8 @@ DEFAULT_PASS = "admin123"
try: try:
DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083)) DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083))
except ValueError: except ValueError:
'''value = re.findall('.*?(\d+)$',os.environ.get("CALIBRE_PORT")) print ('Environmentvariable CALIBRE_PORT is set to an invalid value: ' +
if len(value): os.environ.get("CALIBRE_PORT", 8083) + ', faling back to default (8083)')
DEFAULT_PORT = int(value[0])
else:'''
DEFAULT_PORT = 8083 DEFAULT_PORT = 8083
UPDATE_STABLE = 0 UPDATE_STABLE = 0