Bolton-and-Menk-GIS / restapi

Python API designed to work externally with ArcGIS REST Services to query and extract data, and view service properties. Uses arcpy for some functions if available, otherwise uses open source alternatives to interact with the ArcGIS REST API. Also includes a subpackage for administering ArcGIS Server Sites.
GNU General Public License v2.0
93 stars 31 forks source link

Handle cursors on layers with 0 records gracefully #32

Closed philnagel closed 4 years ago

philnagel commented 4 years ago

Attempting to open a cursor on a layer with 0 records throws a ValueError: Not a valid Feature Set!. This should just be ignored, maybe a warning could be thrown.

philnagel commented 4 years ago

Issue only appears when using exceed_limit=True on a layer with 0 records.