mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
lint cleanup
This commit is contained in:
@@ -14,7 +14,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
|
||||
def refresh(self):
|
||||
shared.refresh_checkpoints()
|
||||
|
||||
def list_reference(self):
|
||||
def list_reference(self): # pylint: disable=inconsistent-return-statements
|
||||
if shared.backend != shared.Backend.DIFFUSERS:
|
||||
return []
|
||||
reference_models = shared.readfile(os.path.join('html', 'reference.json'))
|
||||
|
||||
@@ -13,7 +13,6 @@ class ExtraNetworksPageHypernetworks(ui_extra_networks.ExtraNetworksPage):
|
||||
def list_items(self):
|
||||
for name, path in shared.hypernetworks.items():
|
||||
try:
|
||||
fn = os.path.splitext(path)[0]
|
||||
name = os.path.relpath(os.path.splitext(path)[0], shared.opts.hypernetwork_dir)
|
||||
yield {
|
||||
"type": 'Hypernetwork',
|
||||
|
||||
Reference in New Issue
Block a user