1
0

fix flake8-bugbear B011

B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
This commit is contained in:
SomberNight
2023-04-23 01:45:14 +00:00
parent 312f2641e7
commit e2406f21b4
3 changed files with 3 additions and 3 deletions

View File

@@ -709,7 +709,7 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
if value is not None:
self.hm.update_fiat(index)
else:
assert False
raise Exception(f"did not expect {column=!r} to get edited")
def on_double_click(self, idx):
tx_item = idx.internalPointer().get_data()