Skip to content

Commit

Permalink
Use unicode literals for exceptions
Browse files Browse the repository at this point in the history
Otherwise any error message with non-ascii chars won't
generate properly.

The difference being that type('foo %s' % u'bar') -> unicode,
but type('foo {}'.format(u'bar')) -> str.
  • Loading branch information
jamesls committed Mar 31, 2016
1 parent 37d7140 commit 924363a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions botocore/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from __future__ import unicode_literals
from botocore.vendored.requests.exceptions import ConnectionError


Expand Down

0 comments on commit 924363a

Please sign in to comment.