Skip to content

Commit

Permalink
version mismatch bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Feb 5, 2025
1 parent 883df00 commit d15a5bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion javascript/sdppp-a1111.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascript/sdppp-comfy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/photoshop/index.js

Large diffs are not rendered by default.

Binary file modified plugins/sd-ppp_PS.ccx
Binary file not shown.
4 changes: 2 additions & 2 deletions sdppp_python/sdppp.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def connect(sid, environ):
qsobj = dict(x.split('=') for x in qs.split('&'))
api_level = None
with open(path.join(projectRoot, 'sdppp_python', 'version.txt'), 'r') as f:
api_level = f.read()
api_level = f.read().strip()
if api_level is not None and ('api_level' not in qsobj or qsobj['api_level'] != api_level):
raise socketio.exceptions.ConnectionRefusedError('version mismatch, please reinstall PS plugin')

Expand Down Expand Up @@ -104,4 +104,4 @@ async def disconnect(sid):
registerSocketEvents(self, self.sio)

def has_ps_instance(self, throw_error = False):
return True
return True

0 comments on commit d15a5bb

Please sign in to comment.