File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33
44"""
55A class that uses different static function depending of a parameter passed in
6- init. Note the use of a single dictionnary instead of multiple conditions
6+ init. Note the use of a single dictionary instead of multiple conditions
77"""
88__author__ = "Ibrahim Diop <http://ibrahim.zinaria.com>"
99__gist__ = "<https://gist.github.com/diopib/7679559>"
@@ -28,7 +28,7 @@ def __init__(self, param):
2828 if param in self ._static_method_choices .keys ():
2929 self .param = param
3030 else :
31- raise Exception ("Invalid Value for Param: {0}" .format (param ))
31+ raise ValueError ("Invalid Value for Param: {0}" .format (param ))
3232
3333 @staticmethod
3434 def _static_method_1 ():
You can’t perform that action at this time.
0 commit comments