mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 19:03:23 +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
|
return
|
||||||
|
|
||||||
try:
|
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()
|
data = h.read().strip()
|
||||||
|
|
||||||
if data: # Can be empty if polling while the file is being re-written
|
if data: # Can be empty if polling while the file is being re-written
|
||||||
|
Loading…
x
Reference in New Issue
Block a user