Skip to content

Commit bd62d25

Browse files
committed
More updates
1 parent 98053cc commit bd62d25

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,27 @@ on:
66
- master
77

88
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
1713
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
2019
with:
2120
python-version: 3.9
2221

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
2630
with:
27-
path: dist/*
31+
name: obs-websocket-http-Windows
32+
path: dist/obs-websocket-http*

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ async def emit_request_callback(request):
8080

8181
async def init():
8282
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
8488
if not await ws.wait_until_identified():
8589
logging.error('Identification with obs-websocket timed out. Could it be using 4.x?')
8690
return False

0 commit comments

Comments
 (0)