Browse Source

Implement UserError __unicode__ method

Aanand Prasad 12 năm trước cách đây
mục cha
commit
a8e275a432
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      fig/cli/errors.py

+ 3 - 0
fig/cli/errors.py

@@ -5,3 +5,6 @@ from textwrap import dedent
 class UserError(Exception):
     def __init__(self, msg):
         self.msg = dedent(msg).strip()
+
+    def __unicode__(self):
+        return self.msg