diff --git a/fortls/langserver.py b/fortls/langserver.py index c22a0439..1f95a9fe 100644 --- a/fortls/langserver.py +++ b/fortls/langserver.py @@ -237,10 +237,10 @@ def serve_initialize(self, request: dict): # Log final options final_options = {} - for param in self.arguments_list: - if param.startswith("debug_") and param != "debug_log": + for argument in self.arguments_list: + if argument.startswith("debug_") and argument != "debug_log": continue - final_options[param] = getattr(self, param) + final_options[argument] = getattr(self, argument) log.debug("Final options: %s", final_options) return {"capabilities": server_capabilities}