diff --git a/atef/widgets/config.py b/atef/widgets/config.py index 1b94ff6c..0ef457c5 100644 --- a/atef/widgets/config.py +++ b/atef/widgets/config.py @@ -185,7 +185,7 @@ def save_as(self, *args, filename: Optional[str] = None, **kwargs): caption='Save as', filter='Json Files (*.json)', ) - if filename.endswith('.json') is False: # json_extension_bug_fix location + if not filename.endswith('.json'): filename += '.json' try: with open(filename, 'w') as fd: