Catching PermissionError in api
Merge pull request #4201 from lwyszomi/132060

Catching PermissionError in api