diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2023-03-16 18:27:29 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-03-16 18:27:29 -0400 |
commit | ae0e98ce671086617e840719a87635b8f748595e (patch) | |
tree | a946fc3ee5a96133483881d9ffd833ea96f32d8f /sploit/symtbl.py | |
parent | d2763180e6c92c901448fa85aca01a2780ea5e79 (diff) | |
download | nsploit-ae0e98ce671086617e840719a87635b8f748595e.tar.gz nsploit-ae0e98ce671086617e840719a87635b8f748595e.zip |
arch: Move private methods to bottom of file
Also check type when setting arch.
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'sploit/symtbl.py')
-rw-r--r-- | sploit/symtbl.py | 2 |
1 files changed, 1 insertions, 1 deletions
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__) |