FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #75 from flimsyhat/image-behavior · plotdevice/plotdevice@259c033 · GitHub

Repository navigation

Commit 259c033

Browse files
authored
Merge pull request #75 from flimsyhat/image-behavior
fix: additional check for image() having been called with no arguments
2 parents 6399225 + 07ad3a9 commit 259c033

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎plotdevice/gfx/image.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def __init__(self, *args, **kwargs):
7777
else:
7878
invalid = "Not a valid image source: %r" % type(src)
7979
raise DeviceError(invalid)
80+
else:
81+
undefined = "Image requires either a source (path/url/Image) or image data"
82+
raise DeviceError(undefined)
8083

8184
# set the bounds (in phases)
8285
if isinstance(src, Image):

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL