Skip to content

Commit

Permalink
Fix Unpack Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Sep 30, 2023
1 parent c7cfb96 commit 9966700
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ def __init__(self, mpk):
if not mpk:
ywarn("插件不存在")
return
if not zipfile.is_zipfile(mpk):
ywarn("非插件!")
input("任意按钮返回")
with zipfile.ZipFile(mpk, 'r') as myfile:
with myfile.open('info') as info_file:
self.mconf.read_string(info_file.read().decode('utf-8'))
Expand Down

0 comments on commit 9966700

Please sign in to comment.