mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
DoesNotExist should be ObjectDoesNotExist, oops!
This commit is contained in:
@@ -63,7 +63,7 @@ def filter_generator_for(size):
|
||||
for thumbnail in bundle.obj._prefetched_objects_cache['thumbnail']:
|
||||
if thumbnail.size == size:
|
||||
return thumbnail
|
||||
raise DoesNotExist()
|
||||
raise ObjectDoesNotExist()
|
||||
return wrapped_func
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user