Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit b4ed859

Browse files
committed
Fix bug (#31)
close #31
1 parent 58a151d commit b4ed859

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: sync/core/Pull.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,13 @@ def get_online_module():
159159

160160
def from_json(self, track, *, local):
161161
if local:
162-
track.update_to = self._local_folder.joinpath(track.update_to)
162+
update_to = self._local_folder.joinpath(track.update_to)
163+
else:
164+
update_to = track.update_to
163165

164166
@Result.catching()
165167
def load_json():
166-
return MagiskUpdateJson.load(track.update_to)
168+
return MagiskUpdateJson.load(update_to)
167169

168170
result = load_json()
169171
if result.is_failure:

0 commit comments

Comments
 (0)