fix ImportError when non-ASCII characters in import path

This commit is contained in:
Alan Hamlett 2015-08-23 13:37:25 -07:00
parent 4e415fe4ab
commit 31a353be7a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ sys.path.insert(0, package_folder)
# import local wakatime package
try:
import wakatime
except TypeError:
except (TypeError, ImportError):
# on Windows, non-ASCII characters in import path can be fixed using
# the script path from sys.argv[0].
# More info at https://github.com/wakatime/wakatime/issues/32