diff --git a/controls.py b/controls.py index a0deadf..a405637 100644 --- a/controls.py +++ b/controls.py @@ -50,7 +50,10 @@ class Control: """ s = "\n\nCurrent Mode: " + Control.get()["name"]+"\n" for c in Control.controls[Control.current]["controls"]: - s += c[0].value + ": " + c[1].name + "\n" + try: + s += c[0].value + ": " + c[1].name + "\n" + except AttributeError: + s += c[0].value + ": " + c[1] + "\n" return s