From 024b94d5822b1968113f2306587fe521c2c51b81 Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Tue, 19 Dec 2017 12:56:01 -0200 Subject: [PATCH] Fixes #1615 --- sapl/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/utils.py b/sapl/utils.py index 6e690eb5e..3ef2c05eb 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -236,9 +236,9 @@ def create_barcode(value): ''' from base64 import b64encode from reportlab.graphics.barcode import createBarcodeDrawing - + value_bytes = bytes(value, "ascii") barcode = createBarcodeDrawing('Code128', - value=value, + value=value_bytes, barWidth=170, height=50, fontSize=2,