Don't do QRcode plugin base imports, or the web app may fail if the dependencies are not installed
This commit is contained in:
parent
7ce5efaf2e
commit
03968928e7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,6 @@ from flask import abort, request, Blueprint, Response
|
|||
|
||||
from platypush.backend.http.app import template_folder
|
||||
from platypush.context import get_plugin
|
||||
from platypush.plugins.qrcode import QrcodePlugin
|
||||
|
||||
qrcode = Blueprint('qrcode', __name__, template_folder=template_folder)
|
||||
|
||||
|
@ -20,6 +19,7 @@ def generate_code():
|
|||
This route can be used to generate a QR code given a ``content`` parameter.
|
||||
"""
|
||||
|
||||
from platypush.plugins.qrcode import QrcodePlugin
|
||||
content = request.args.get('content')
|
||||
if not content:
|
||||
abort(400, 'Expected content parmeter')
|
||||
|
|
Loading…
Reference in a new issue