mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 16:13:47 +08:00
Change error to warning so that autodoc doesn't fail.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user