From 77ee99378237ff9e04e9d0739467645c30c3ab79 Mon Sep 17 00:00:00 2001 From: J Axmacher Date: Fri, 8 Dec 2017 11:39:04 -0500 Subject: [PATCH] Coerce environment variable name to string On Windows, environment variable names must be of type string. Otherwise, subprocess throws a TypeError exception. --- awsshell/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awsshell/app.py b/awsshell/app.py index 84b5660..3194351 100644 --- a/awsshell/app.py +++ b/awsshell/app.py @@ -507,6 +507,6 @@ def profile(self, new_profile_name): # it's worth adding an event system or observers just yet. # If this gets hard to manage, the complexity of those systems # would be worth it. - self._env['AWS_DEFAULT_PROFILE'] = new_profile_name + self._env[str('AWS_DEFAULT_PROFILE')] = new_profile_name self.completer.change_profile(new_profile_name) self._profile = new_profile_name