mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
dashboard: Convert open(pathlib) to pathlib.open()
This commit is contained in:
parent
04506899cc
commit
4d9e8e3f30
@ -177,7 +177,7 @@ class Dashboard(FileSystemEventHandler):
|
||||
return
|
||||
|
||||
try:
|
||||
with open(pathlib.Path(self.currentdir) / 'Status.json', 'rb') as h:
|
||||
with (pathlib.Path(self.currentdir) / 'Status.json').open('rb') as h:
|
||||
data = h.read().strip()
|
||||
|
||||
if data: # Can be empty if polling while the file is being re-written
|
||||
|
Loading…
x
Reference in New Issue
Block a user