diff --git a/plugin/commands/workspace.py b/plugin/commands/workspace.py
index 31694e8..a13cb3c 100644
--- a/plugin/commands/workspace.py
+++ b/plugin/commands/workspace.py
@@ -156,9 +156,8 @@ class CodempDeleteBufferCommand(sublime_plugin.WindowCommand):
 
     def input(self, args):
         if "workspace_id" not in args:
-            wslist = session.get_workspaces(owned=True, invited=False)
             return SimpleListInput(
-                ("workspace_id", wslist),
+                ("workspace_id", session.get_workspaces(owned=True, invited=False)),
             )
 
         if "buffer_id" not in args: