mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-25 02:57:22 +00:00
Output of errormessage for invalid CALIBRE_PORT value
This commit is contained in:
parent
56826f67fc
commit
237502ae6b
@ -64,10 +64,8 @@ DEFAULT_PASS = "admin123"
|
||||
try:
|
||||
DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083))
|
||||
except ValueError:
|
||||
'''value = re.findall('.*?(\d+)$',os.environ.get("CALIBRE_PORT"))
|
||||
if len(value):
|
||||
DEFAULT_PORT = int(value[0])
|
||||
else:'''
|
||||
print ('Environmentvariable CALIBRE_PORT is set to an invalid value: ' +
|
||||
os.environ.get("CALIBRE_PORT", 8083) + ', faling back to default (8083)')
|
||||
DEFAULT_PORT = 8083
|
||||
|
||||
UPDATE_STABLE = 0
|
||||
|
Loading…
Reference in New Issue
Block a user