Skip to content

Commit b3742b6

Browse files
committed
Added TypeError check exception, for bad JSON data
1 parent 7096244 commit b3742b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyPortal_CMA_Art_Frame/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
print("Response is", response)
5050
loopcount = loopcount + 1
5151

52-
except (RuntimeError, KeyError) as e:
52+
except (RuntimeError, KeyError, TypeError) as e:
5353
print("An error occured, retrying! -", e)
5454
print("loop counter:", loopcount)
5555
assert errorcount < 20, "Too many errors, stopping"

0 commit comments

Comments
 (0)