Commits

Valentin Gorbunov committed 752a53b

fix for SMRerror printing

  • Participants
  • Parent commits 34ef47d

Comments (0)

Files changed (1)

File smartresponder/api.py

         return self.error['request_params']
 
     def __unicode__(self):
-        return "Error(code = '%s', description = '%s', params = '%s')" % (self.code, self.description, self.params)
-
-    def __str__(self):
-        return "Error(code = '%s', params = '%s')" % (self.code, self.params)
+        return u"Error(code='%s', description='%s', params='%s')" % (self.code, self.description, self.params)
 
 
 def safe_json_loads(data):