Skip to content

Commit 8fc0183

Browse files
committed
don't validate hash if -D; can use to test with invalid hashes
1 parent ef18bfa commit 8fc0183

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/panwfapi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ def process_hashes(list):
225225

226226

227227
def validate_hash(hash):
228+
if debug > 0:
229+
return
230+
228231
if not (len(hash) == 32 or len(hash) == 64):
229232
print('hash length must be 32 (MD5) or 64 (SHA256)',
230233
file=sys.stderr)

0 commit comments

Comments
 (0)