From f0c182c721b4fef49ab024aaac5ac21f5cc6617a Mon Sep 17 00:00:00 2001
From: Panagiotis Chartas <t3l3machus@protonmail.com>
Date: Mon, 4 Jul 2022 11:31:09 +0200
Subject: [PATCH] Update psudohash.py

---
 psudohash.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/psudohash.py b/psudohash.py
index 90561ff..99d4572 100644
--- a/psudohash.py
+++ b/psudohash.py
@@ -65,7 +65,10 @@ def unique(l):
 # Append numbering
 if args.numbering_limit and not args.append_numbering:
 	exit_with_msg('Option -nl must be used with -an.')
-	
+
+if args.append_numbering <= 0:
+	exit_with_msg('Numbering level must be > 0.')
+
 _max = args.numbering_limit + 1 if args.numbering_limit and isinstance(args.numbering_limit, int) else 51