Skip to content

Remove unicode character in comment

Aqu requested to merge remove_unicode_character into main

When serializing the dag, this Unicode char makes the MySQL encoder crash. It happens only in production, where we encode to Maria DB.

Here is the end of the stack trace:

File "/usr/lib/airflow/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
    cursor.execute(statement, parameters)
  File "/usr/lib/airflow/lib/python3.7/site-packages/MySQLdb/cursors.py", line 199, in execute
    args = tuple(map(db.literal, args))
  File "/usr/lib/airflow/lib/python3.7/site-packages/MySQLdb/connections.py", line 280, in literal
    s = self.string_literal(o.encode(self.encoding))
  File "/usr/lib/airflow/lib/python3.7/encodings/cp1252.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode character '\u26a0' in position 2654: character maps to <undefined>

Merge request reports