Change error to warning so that autodoc doesn't fail.

This commit is contained in:
Tony S Yu
2012-08-25 12:11:46 -04:00
parent b14514e018
commit be33941701
+3 -1
View File
@@ -1,3 +1,5 @@
import warnings
import numpy as np
try:
@@ -28,7 +30,7 @@ class RequiredAttr(object):
def __get__(self, obj, objtype):
if self.val is None:
raise RuntimeError(self.msg)
warnings.warn(self.msg)
return self.val
def __set__(self, obj, val):