work around python 2/3 difference by using str(exception)
This commit is contained in:
		
							parent
							
								
									d028fe1e66
								
							
						
					
					
						commit
						cd9e30b221
					
				|  | @ -45,7 +45,8 @@ def resolve(name): | |||
|             try: | ||||
|                 __import__(used) | ||||
|             except ImportError as ex: | ||||
|                 expected = ex.message.split()[-1] | ||||
|                 # str is used for py2 vs py3 | ||||
|                 expected = str(ex).split()[-1] | ||||
|                 if expected == used: | ||||
|                     raise | ||||
|                 else: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue