Error with https://logic

exception = HTTPSConnectionPool(host='logic', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("HTTPSConnection(host='logic', port=443): Failed to resolve 'logic' ([Errno -2] Name or service not known)"))