certtools / intelmq-api

FastAPI-based API for the IntelMQ project
https://docs.intelmq.org/latest/user/api/
1 stars 7 forks source link

ENH: Catch exception on missing permisssion and output cause #27

Closed ghost closed 3 years ago

ghost commented 3 years ago

SQLite fails to work with a sqlite databse if it does not have write permissions to the folder the database is located in. This commit catches this error and displays an error message informing the user about the possible cause.

ghost commented 3 years ago

Same as https://github.com/certtools/intelmq-api/pull/25, but could not directly push to maintenance