File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
- build :
10
- name : Multiplatform Build
11
- runs-on : ${{ matrix.os }}
12
- strategy :
13
- matrix :
14
- os : ['windows-latest', 'ubuntu-latest, 'macos-latest']
15
- fail-fast : false
16
-
9
+ windows-build :
10
+ name : ' Windows 32/64-bit'
11
+ runs-on : windows-latest
12
+ if : contains(github.event.head_commit.message, '[skip ci]') != true
17
13
steps :
18
- - uses : actions/checkout@v2
19
- - uses : actions/setup-python@v2
14
+ - name : Checkout Repository
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Install Python 3.9
18
+ uses : actions/setup-python@v2
20
19
with :
21
20
python-version : 3.9
22
21
23
- - run : pip install -r requirements.txt pyinstaller
24
- - run : pyinstaller main.py
25
- - uses : actions/upload-artifact@v2
22
+ - name : Install Python Prerequisites
23
+ run : pip install -r requirements.txt pyinstaller
24
+
25
+ - name : Package
26
+ run : pyinstaller main.py
27
+
28
+ - name : Upload Artifacts
29
+ uses : actions/upload-artifact@v2
26
30
with :
27
- path : dist/*
31
+ name : obs-websocket-http-Windows
32
+ path : dist/obs-websocket-http*
Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ async def emit_request_callback(request):
80
80
81
81
async def init ():
82
82
logging .info ('Connecting to obs-websocket...' )
83
- await ws .connect ()
83
+ try :
84
+ await ws .connect ()
85
+ except ConnectionRefusedError :
86
+ logging .error ('Failed to connect to the obs-websocket server. Got connection refused.' )
87
+ return False
84
88
if not await ws .wait_until_identified ():
85
89
logging .error ('Identification with obs-websocket timed out. Could it be using 4.x?' )
86
90
return False
You can’t perform that action at this time.
0 commit comments