diff --git a/analytics.py b/analytics.py index c04a457..eeec0e5 100644 --- a/analytics.py +++ b/analytics.py @@ -53,8 +53,11 @@ class Database(metaclass=SingletonMeta): ) ''') -# Create a global database instance. -log_db = Database() +try: + # Create a global database instance. + log_db = Database() +except: + print("No access to database. No logs available!!!") def lookup_location(ip, reader): try: