Traceback (most recent call last):


 "inactive-window-transparency.py", line 21, in <module>

ipc.main() # enter command loop


 "/usr/lib/python3.7/site-packages/i3ipc/i3ipc.py", line 728, in main

while not self.event_socket_poll():


 "/usr/lib/python3.7/site-packages/i3ipc/i3ipc.py", line 716, in event_socket_poll

self._pubsub.emit(event_name, event)


 "/usr/lib/python3.7/site-packages/i3ipc/i3ipc.py", line 311, in emit

s['handler'](self.conn, data)


 "inactive-window-transparency.py", line 17, in on_window_focus

prev_focused.command('opacity 0.8')
UnboundLocalError: local variable 'prev_focused' referenced before assignment

Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save

return self._save(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 283, in _save

self.insert()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 222, in insert

self.run_before_save_methods()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 869, in run_before_save_methods

self.run_method("validate")


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 765, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1040, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1023, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 759, in 

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/buying/doctype/purchase_order/purchase_order.py", line 44, in validate

super(PurchaseOrder, self).validate()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/buying_controller.py", line 35, in validate

super(BuyingController, self).validate()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py", line 17, in validate

super(StockController, self).validate()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py", line 41, in validate

self.set_missing_values(for_validate=True)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/buying_controller.py", line 70, in set_missing_values

self.set_missing_item_details(for_validate)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py", line 202, in set_missing_item_details

ret = get_item_details(args)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/get_item_details.py", line 65, in get_item_details

get_price_list_rate(args, item_doc, out)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/get_item_details.py", line 308, in get_price_list_rate

price_list_rate = get_price_list_rate_for(args.price_list, item_doc.name)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/get_item_details.py", line 361, in get_price_list_rate_for

{"price_list": price_list, "item_code": item_code}, "price_list_rate")


 "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 472, in get_value

order_by, cache=cache)


 "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 516, in get_values

out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)


 "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 650, in _get_values_from_table

conditions, values = self.build_conditions(filters)


 "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 436, in build_conditions

_build_condition(f)


 "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 403, in _build_condition

_operator = value[0]
IndexError: list index out of range
