catalpa-cl / inceptalytics

An easy-to-use API for analyzing INCEpTION annotation projects.
16 stars 7 forks source link

give meaningful error message when authentication via remote is failing. #9

Open simulacrum6 opened 2 years ago

simulacrum6 commented 2 years ago

When trying to access a project using the remote api with wrong credentials, a zipfile.BadZipFile error is raised. This is due to the fact that the inception remote api returns an html page if authentication fails. The error message is misleading to users.

When authentication fails, an appropriate error message should be raised.