Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VAServerLauncher
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
VAServerLauncher
Commits
64fc1306
Commit
64fc1306
authored
2 years ago
by
Philipp Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Launcher script: added a catch for json decode errors
parent
be94de35
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LaunchScript/VirtualAcousticsStarterServer.py
+6
-2
6 additions, 2 deletions
LaunchScript/VirtualAcousticsStarterServer.py
with
6 additions
and
2 deletions
LaunchScript/VirtualAcousticsStarterServer.py
+
6
−
2
View file @
64fc1306
...
...
@@ -17,8 +17,12 @@ class ErrorCodes(Enum):
# Class representing the VA-Launcher config (.json) file
class
LauncherConfig
:
def
__init__
(
conf
,
sConfigFile
):
with
open
(
sConfigFile
)
as
json_file
:
json_config
=
json
.
load
(
json_file
)
try
:
with
open
(
sConfigFile
)
as
json_file
:
json_config
=
json
.
load
(
json_file
)
except
Exception
as
e
:
print
(
"
ERROR reading the json config:
"
+
os
.
linesep
+
str
(
e
)
)
sys
.
exit
(
ErrorCodes
.
ERROR_INCOMPLETE_CONFIG
)
try
:
conf
.
dVirtualAcousticDirectories
=
json_config
[
"
dVAServerDirectories
"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment