Traceback (most recent call last):


 "C:\Program 
s\JetBrains\PyCharm 2018.2.2\helpers\pycharm\django_manage.py", line 52, in <module>

run_command()


 "C:\Program 
s\JetBrains\PyCharm 2018.2.2\helpers\pycharm\django_manage.py", line 46, in run_command

run_module(manage_file, None, '__main__', True)


 "C:\Python3\lib\runpy.py", line 205, in run_module

return _run_module_code(code, init_globals, run_name, mod_spec)


 "C:\Python3\lib\runpy.py", line 96, in _run_module_code

mod_name, mod_spec, pkg_name, script_name)


 "C:\Python3\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)


 "G:/Dev/tadshop/site\manage.py", line 10, in <module>

execute_from_command_line(sys.argv)


 "G:\Dev\tadshop\site\venv\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line

utility.execute()


 "G:\Dev\tadshop\site\venv\lib\site-packages\django\core\management\__init__.py", line 365, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "G:\Dev\tadshop\site\venv\lib\site-packages\django\core\management\base.py", line 288, in run_from_argv

self.execute(*args, **cmd_options)


 "G:\Dev\tadshop\site\venv\lib\site-packages\django\core\management\base.py", line 335, in execute

output = self.handle(*args, **options)


 "G:/Dev/tadshop/site\saleor\core\management\commands\populatedb.py", line 66, in handle

for msg in create_orders(20):


 "G:/Dev/tadshop/site\saleor\core\utils\random_data.py", line 504, in create_orders

order = create_fake_order(discounts, taxes)


 "G:/Dev/tadshop/site\saleor\core\utils\random_data.py", line 470, in create_fake_order

[line.get_total() for line in lines], order.shipping_price)


 "G:/Dev/tadshop/site\saleor\core\utils\random_data.py", line 470, in <listcomp>

[line.get_total() for line in lines], order.shipping_price)


 "G:/Dev/tadshop/site\saleor\core\utils\random_data.py", line 427, in create_order_lines

yield create_order_line(order, discounts, taxes)


 "G:/Dev/tadshop/site\saleor\core\utils\random_data.py", line 410, in create_order_line

variant = product.variants.all()[0]


 "G:\Dev\tadshop\site\venv\lib\site-packages\django\db\models\query.py", line 307, in __getitem__

return qs._result_cache[0]
IndexError: list index out of range

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "D:\Python38\lib\site-packages\akshare\stock_feature\stock_sina_lhb.py", line 73, in stock_sina_lhb_ggtj

last_page_num = int(soup.find_all(attrs={"class": "page"})[-2].text)
IndexError: list index out of range
