diff --git a/bots/modules/channel_helper.py b/bots/modules/channel_helper.py index e45dc19..aa351a2 100644 --- a/bots/modules/channel_helper.py +++ b/bots/modules/channel_helper.py @@ -50,7 +50,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig): image_hash = imagehash.phash(im) if self.queued_items.filter(image_hash=image_hash, type='photo').count() > 0: - return False + raise RuntimeError('Duplicate') width, height = im.size if width > 2000 or height > 2000: