add --no-hashing

This commit is contained in:
AUTOMATIC
2023-02-04 11:38:56 +03:00
parent 30228c67ca
commit 81823407d9
4 changed files with 9 additions and 2 deletions

View File

@@ -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):