| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,9 @@ def __init__(self, *args, **kwargs): | |||
| 77 | 77 | else: | |
| 78 | 78 | invalid = "Not a valid image source: %r" % type(src) | |
| 79 | 79 | raise DeviceError(invalid) | |
| 80 | + else: | ||
| 81 | + undefined = "Image requires either a source (path/url/Image) or image data" | ||
| 82 | + raise DeviceError(undefined) | ||
| 80 | 83 | ||
| 81 | 84 | # set the bounds (in phases) | |
| 82 | 85 | if isinstance(src, Image): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments