From ae0e98ce671086617e840719a87635b8f748595e Mon Sep 17 00:00:00 2001 From: dusoleil Date: Thu, 16 Mar 2023 18:27:29 -0400 Subject: arch: Move private methods to bottom of file Also check type when setting arch. Signed-off-by: dusoleil --- sploit/symtbl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sploit/symtbl.py') diff --git a/sploit/symtbl.py b/sploit/symtbl.py index 3babd96..4b80a0a 100644 --- a/sploit/symtbl.py +++ b/sploit/symtbl.py @@ -156,7 +156,7 @@ class SymtblImpl: elif symbol in dir(self): raise KeyError(f"Symtbl: key is reserved: {symbol}") elif type(symbol) is not str: - raise KeyError(f"Symtbl: key must be a string: {symbol}") + raise TypeError(f"Symtbl: key must be a string: {symbol}") else: self.__entries__[symbol] = value - (self.base + self.__adjust__) -- cgit v1.2.3