From f36d3a76be04ae6d899ef0a5bb6070bf785bd4dd Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 2 Apr 2022 17:29:30 +0200 Subject: [PATCH] Return false if custom columns generate an error during connect database Replaced existing with valid in readme to make it more clear what database is needed --- README.md | 2 +- cps/db.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 94be5b33..c528f09d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # About -Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing [Calibre](https://calibre-ebook.com) database. +Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using a valid [Calibre](https://calibre-ebook.com) database. [![GitHub License](https://img.shields.io/github/license/janeczku/calibre-web?style=flat-square)](https://github.com/janeczku/calibre-web/blob/master/LICENSE) [![GitHub commit activity](https://img.shields.io/github/commit-activity/w/janeczku/calibre-web?logo=github&style=flat-square&label=commits)]() diff --git a/cps/db.py b/cps/db.py index 3f64fbb5..d2977e07 100644 --- a/cps/db.py +++ b/cps/db.py @@ -592,6 +592,7 @@ class CalibreDB: cls.setup_db_cc_classes(cc) except OperationalError as e: log.error_or_exception(e) + return False cls.session_factory = scoped_session(sessionmaker(autocommit=False, autoflush=True,