Blob Blame History Raw
From f8335a4262236bc6b679898c4c5e4b845f7e1306 Mon Sep 17 00:00:00 2001
From: Scott K Logan <logans@cottsay.net>
Date: Wed, 30 Apr 2014 20:49:07 -0600
Subject: [PATCH] Workaround for extended characters in errors

---
 src/rosdep2/main.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/rosdep2/main.py b/src/rosdep2/main.py
index 9580696..d0cc582 100644
--- a/src/rosdep2/main.py
+++ b/src/rosdep2/main.py
@@ -516,11 +516,11 @@ def command_check(lookup, packages, options):
 
 def error_to_human_readable(error):
     if isinstance(error, rospkg.ResourceNotFound):
-        return "Missing resource %s"%(str(error))
+        return "Missing resource %s"%(error,)
     elif isinstance(error, ResolutionError):
-        return str(error.args[0])
+        return "%s"%(error.args[0],)
     else:
-        return str(error)
+        return "%s"%(error,)
     
 def command_install(lookup, packages, options):
     # map options
-- 
1.9.3