POS-Awesome icon indicating copy to clipboard operation
POS-Awesome copied to clipboard

[BUG]: Error when updating due to Python 3.5 compability

Open Helkyd opened this issue 3 years ago • 0 comments

V12.24.0

  • Erpnext: V12.27.0
  • POS Awesome: 3.1.1

Stacktrace / full error message

Compiling Python Files... *** Error compiling '../apps/posawesome/posawesome/posawesome/api/m_pesa.py'... File "../apps/posawesome/posawesome/posawesome/api/m_pesa.py", line 74 filters["msisdn"] = ["like", f"%{mobile_no}%"] ^ SyntaxError: invalid syntax

(paste here)

What is actually happening?

Due to Python3.5 compability F-string cannot be used...reason why the error.

Helkyd avatar Dec 23 '21 14:12 Helkyd