mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-26 21:07:40 +00:00 
			
		
		
		
	Output of errormessage for invalid CALIBRE_PORT value
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzieisaacs
					Ozzieisaacs