freemt commited on
Commit
fac3e4e
1 Parent(s): 3134951

Fix utils.py

Browse files
Files changed (1) hide show
  1. radio_mlbee/utils.py +2 -2
radio_mlbee/utils.py CHANGED
@@ -11,7 +11,7 @@ except Exception as exc:
11
  logger.error("rea text1 error: %s, setting to ''", exc)
12
  text1 = ""
13
  try:
14
- text2 = Path(data_dir, "test-zh.txt").read_text()
15
  except Exception as exc:
16
- logger.eror("rea text2 error: %s, setting to ''", exc)
17
  text2 = ""
 
11
  logger.error("rea text1 error: %s, setting to ''", exc)
12
  text1 = ""
13
  try:
14
+ text2 = Path(data_dir, "test-zh.txt").read_text(encoding="utf8")
15
  except Exception as exc:
16
+ logger.error("read text2 error: %s, setting to ''", exc)
17
  text2 = ""