Skip to content

Commit 6f3f69e

Browse files
committed
more verbose print exceptions
1 parent 3b1fa84 commit 6f3f69e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/src/xbot2_gui_server/main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def load_extensions():
9494
except ModuleNotFoundError:
9595
pass
9696
except BaseException as e:
97-
print('Exception ', type(e), e)
97+
print('Launcher Exception ', type(e), e)
9898

9999
# cartesian
100100
try:
@@ -113,7 +113,7 @@ async def load_extensions():
113113
except ModuleNotFoundError:
114114
pass
115115
except BaseException as e:
116-
print('Exception ', type(e), e)
116+
print('SpeechHandler Exception ', type(e), e)
117117

118118

119119
# visual
@@ -123,7 +123,7 @@ async def load_extensions():
123123
extensions.append(ext)
124124
print(ext)
125125
except BaseException as e:
126-
print('Exception ', type(e), e)
126+
print('VisualHandler Exception ', type(e), e)
127127

128128
# concert
129129
if 'concert' in cfg.keys():
@@ -133,7 +133,7 @@ async def load_extensions():
133133
extensions.append(ext)
134134
print(ext)
135135
except BaseException as e:
136-
print('Exception ', type(e), e)
136+
print('ConcertHandler Exception ', type(e), e)
137137

138138
# ecat
139139
if 'ecat' in cfg.keys():
@@ -154,15 +154,15 @@ async def load_extensions():
154154
extensions.append(ext)
155155
print(ext)
156156
except BaseException as e:
157-
print('Exception ', type(e), e)
157+
print('DashboardHandler Exception ', type(e), e)
158158

159159
try:
160160
from .parameters import ParameterHandler
161161
ext = ParameterHandler(srv, cfg.get('parameters', {}))
162162
extensions.append(ext)
163163
print(ext)
164164
except BaseException as e:
165-
print('Exception ', type(e), e)
165+
print('ParameterHandler Exception ', type(e), e)
166166

167167
srv.extensions = extensions
168168

0 commit comments

Comments
 (0)