mirror of
https://codeberg.org/privacy1st/rotate-screen
synced 2024-12-02 22:55:02 +01:00
minor
This commit is contained in:
parent
6f3afb6ac8
commit
e40fc1158b
@ -112,8 +112,9 @@ class Config:
|
||||
|
||||
return matches
|
||||
|
||||
def load_json(self) -> tuple[list[str], list]:
|
||||
j = json.loads(self.get_cfg_path().read_text())
|
||||
@classmethod
|
||||
def load_json(cls) -> tuple[list[str], list]:
|
||||
j = json.loads(cls.get_cfg_path().read_text())
|
||||
if "screens" not in j:
|
||||
raise Exception("'screens' array missing in cfg.")
|
||||
screens = j["screens"]
|
||||
|
Loading…
Reference in New Issue
Block a user