diff --git a/proxy_manager.rb b/proxy_manager.rb
index <HASH>..<HASH> 100644
--- a/proxy_manager.rb
+++ b/proxy_manager.rb
@@ -38,6 +38,8 @@ class ProxyManager
           @bad_proxies << proxy
         end
       end
+
+      raise "Proxy list is empty!" if @proxy.nil?
     end
 
     def save_proxies_sources(*args)
check if there are no available proxy