TypeError: can only concatenate tuple (not “int”) to tuple
问题 i am trying to return a value from db and getting this error.I tried the previously answered questions here,but no luck.Can anyone help me? @frappe.whitelist() def generate_barcode(): last_barcode = frappe.db.sql("""\ select MAX(barcode) from `tabItem` """) if last_barcode: last_barcode = last_barcode + 1 else: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] random.shuffle(x) last_barcode = x[0] return {'last_barcode':last_barcode} adding traceback: Traceback (innermost last): File "/home/adminuser/frappe