Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "D:\Downloads\Verka\venv\lib\site-packages\pymysql\connections.py", line 920, in connect
  3. **kwargs)
  4. File "C:\Python36\Lib\socket.py", line 724, in create_connection
  5. raise err
  6. File "C:\Python36\Lib\socket.py", line 713, in create_connection
  7. sock.connect(sa)
  8. socket.timeout: timed out
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "main.py", line 28, in <module>
  14. category_list = check_category()
  15. File "D:\Downloads\Verka\get_categories.py", line 8, in check_category
  16. category_list = get_categories_list()
  17. File "D:\Downloads\Verka\mysql.py", line 24, in get_categories_list
  18. connection = db_connect() # Подключаемся к БД
  19. File "D:\Downloads\Verka\mysql.py", line 19, in db_connect
  20. charset='utf8')
  21. File "D:\Downloads\Verka\venv\lib\site-packages\pymysql\__init__.py", line 90, in Connect
  22. return Connection(*args, **kwargs)
  23. File "D:\Downloads\Verka\venv\lib\site-packages\pymysql\connections.py", line 699, in __init__
  24. self.connect()
  25. File "D:\Downloads\Verka\venv\lib\site-packages\pymysql\connections.py", line 967, in connect
  26. raise exc
  27. pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'sally.timeweb.ru' (timed out)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement