aboutsummaryrefslogtreecommitdiff
path: root/modules/hypernetworks/hypernetwork.py
diff options
context:
space:
mode:
authorunknown <mcgpapu@gmail.com>2023-02-05 07:24:57 -0600
committerunknown <mcgpapu@gmail.com>2023-02-05 07:24:57 -0600
commit501d4e9cf111c2b94805181e3ab2e1b8b5d81f31 (patch)
tree712d6e405c406e573e8f2b7f44b9e4462432ff61 /modules/hypernetworks/hypernetwork.py
parent5e1f4f7464e560a2468812fc9d5cb38659cff86c (diff)
parentea9bd9fc7409109adcd61b897abc2c8881161256 (diff)
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui into gamepad
Diffstat (limited to 'modules/hypernetworks/hypernetwork.py')
-rw-r--r--modules/hypernetworks/hypernetwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py
index 503534e2..825a93b2 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -307,7 +307,7 @@ class Hypernetwork:
def shorthash(self):
sha256 = hashes.sha256(self.filename, f'hypernet/{self.name}')
- return sha256[0:10]
+ return sha256[0:10] if sha256 else None
def list_hypernetworks(path):