From 0b180f2e68e8fb1025f7f730b16e6c553a008ca3 Mon Sep 17 00:00:00 2001 From: Seth M Morton Date: Fri, 24 Aug 2018 21:34:01 -0700 Subject: [PATCH] Specify exception on StringIO import. Leaving things better than I found it :) --- bumpversion/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumpversion/__init__.py b/bumpversion/__init__.py index c81ba5a..ccd0ff4 100644 --- a/bumpversion/__init__.py +++ b/bumpversion/__init__.py @@ -12,7 +12,7 @@ try: # Python 2 from StringIO import StringIO -except: +except ImportError: # Python 3 from io import StringIO