Describe the bug
There are several occurences of omission of the word 'Exception' inside the code of the arcgis python API when wanting to raise an exception. (I counted 4 occurences in the 2.3.0 version of the API). For example, in the _version.py file line 1079 :
raise ("Version must be in edit mode to run post.")
This leads to the following error when the code is reached :
TypeError: exceptions must derive from BaseException
Thus, the original error message is hidden to the user.
Expected behavior
Please fix the API code in order to raise an exception object and not a string.
Platform:
2.3.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4