Skip to content

Commit 98df4b4

Browse files
authored
Merge pull request odwdinc#45 from gregretkowski/issue-44
raise ConnectionError if sim is not running
2 parents 05263a8 + be74b8b commit 98df4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimConnect/SimConnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def connect(self):
166166
pass
167167
except OSError:
168168
LOGGER.debug("Did not find Flight Simulator running.")
169-
exit(0)
169+
raise ConnectionError("Did not find Flight Simulator running.")
170170

171171
def _run(self):
172172
while self.quit == 0:

0 commit comments

Comments
 (0)