Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def register(settings):
if settings.get('copyright'):
signals.img_resized.connect(add_copyright)
else:
logger.warning('Copyright text is not set')
def register(settings):
if settings.get('adjust_options'):
signals.img_resized.connect(adjust)
else:
logger.warning('Adjust options are not set')
def register(settings):
logger = logging.getLogger(__name__)
if settings.get('watermark'):
signals.img_resized.connect(add_watermark)
else:
logger.warning('Watermark image is not set')