Skip to content

Commit d7a8a95

Browse files
Merge pull request #12 from SlicingDice/feature/fix-internal-exception
Fix internal exception
2 parents c2bbc20 + 4d329ee commit d7a8a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyslicer/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def _handler_request(self, req):
128128

129129
try:
130130
result = ujson.loads(req.text)
131-
except ValueError:
132-
raise exceptions.InternalException
131+
except ValueError as e:
132+
raise exceptions.InternalException("Error while trying to load Json: %s" % e.message)
133133

134134
sd_response = SDHandlerResponse(
135135
result=result,

0 commit comments

Comments
 (0)