diff --git a/terminal.py b/terminal.py index 0b608a5d76f..961a921731b 100644 --- a/terminal.py +++ b/terminal.py @@ -7,6 +7,7 @@ import os import sys from datetime import datetime from typing import List +import socket import pandas as pd import yfinance as yf from alpha_vantage.timeseries import TimeSeries @@ -490,6 +491,11 @@ Contexts: def terminal(): """Terminal Menu""" + # Check if the user has internet connection + if socket.gethostbyname(socket.gethostname()) == "127.0.0.1": + print("Internet connection is needed to use Gamestonk Terminal.", "\n") + return + bootup() ticker = "" # "GME"