DeL-TaiseiOzaki commited on
Commit
8490a22
·
verified ·
1 Parent(s): 05b4d6c

Update core/file_scanner.py

Browse files
Files changed (1) hide show
  1. core/file_scanner.py +1 -1
core/file_scanner.py CHANGED
@@ -68,7 +68,7 @@ class FileScanner:
68
  with file_path.open('r', encoding=encoding) as f:
69
  return f.read(), encoding
70
  except UnicodeDecodeError:
71
- # cp932 を再試行
72
  with file_path.open('r', encoding='cp932') as f:
73
  return f.read(), 'cp932'
74
  except Exception:
 
68
  with file_path.open('r', encoding=encoding) as f:
69
  return f.read(), encoding
70
  except UnicodeDecodeError:
71
+ # cp932 を再試行 (Windows向け)
72
  with file_path.open('r', encoding='cp932') as f:
73
  return f.read(), 'cp932'
74
  except Exception: