diff --git a/fsociety/passwords/traitor.py b/fsociety/passwords/traitor.py index 5ad4ed2..3c494e4 100644 --- a/fsociety/passwords/traitor.py +++ b/fsociety/passwords/traitor.py @@ -1,4 +1,5 @@ import os +import platform from shutil import which from fsociety.core.menu import set_readline @@ -13,8 +14,8 @@ def __init__(self): if "nt" in os.name: self.arch = "" # same as if there's nothing matching, but prevents default checking uname, which only works on posix - elif os.uname().machine in arch_map: - self.arch = arch_map.get(os.uname().machine) + elif platform.uname().machine in arch_map: + self.arch = arch_map.get(platform.uname().machine) else: self.arch = "" self.version = "v0.0.14"