Commit de15b517 authored by abuddenberg's avatar abuddenberg
Browse files

Fixed bug in check_image decorator

parent 69868dc5
......@@ -11,7 +11,7 @@ def check_image(fn):
def wrapped(*args, **kwargs):
# if len(args) < 1 or not isinstance(args[0], Image):
# raise Exception('Invalid Image')
if args[0].identifier in (None, ''):
if args[1].identifier in (None, ''):
raise Exception('Invalid identifier', args[0].identifier)
fn(*args, **kwargs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment