X-Git-Url: https://harishankar.org/repos/?p=biaweb_qt.git;a=blobdiff_plain;f=biaweb_exporter.py;h=52d9a0270a237c02580173228f1bb753804e8d5e;hp=95311590707d74fa3c4c1ef77a1108eb96dbbea4;hb=3ded989fee52f6804d0f8b5b5c0847a9030c7f04;hpb=6ba107bc3e5bef66a447978048e6c41ed038e969 diff --git a/biaweb_exporter.py b/biaweb_exporter.py index 9531159..52d9a02 100644 --- a/biaweb_exporter.py +++ b/biaweb_exporter.py @@ -416,8 +416,14 @@ def generate_home_page (dbname, conf, templates, category_str, bestrated_str): def generate_site (dbname, files_to_copy, folders_to_copy, search_type_full=True): # get the configuration conf = biaweb_db.get_configuration (dbname) + # if cannot get configuration + if conf == False: + return False + # get the templates tpls = biaweb_db.get_templates (dbname) + if tpls == False: + return False # get the list of categories cats = biaweb_db.get_categories (dbname)