Skip to content

Add catch in detect blight script for exceeding Custom Vision AI quota #93

@cosbyr

Description

@cosbyr

Exception Returns like this:

Operation returned an invalid status code 'Quota Exceeded'

while True:
     try:
           results = predictor.predict_image_url_with_no_store(project["projectID"], 
     except Exception as e:
           arcpy.AddMessage(e)

check if e is equal to the value above?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions