Fix an invalid format string on Python 2.7

This commit is contained in:
Chris Hawk 2025-07-29 15:38:43 -07:00
commit 02c4a83263

View file

@ -640,7 +640,7 @@ def main():
fetch['changed'] = changed
fetch['name'] = module.params.get('name')
except Exception as e:
module.fail_json(msg=f"An unexpected error occurred: {str(e)}")
module.fail_json(msg=str(e))
module.exit_json(**fetch)