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,