public upgrade py
This commit is contained in:

committed by
LINxiansheng

parent
056c5a28b4
commit
fe44cd94cf
8
tools/upgrade/my_error.py
Executable file
8
tools/upgrade/my_error.py
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class MyError(Exception):
|
||||
def __init__(self, value):
|
||||
self.value = value
|
||||
def __str__(self):
|
||||
return repr(self.value)
|
Reference in New Issue
Block a user