Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
export: Make Config errors more clear.
Steve Howellaae9f1b6f564
diff --git a/zerver/lib/export.py b/zerver/lib/export.pyindex 6287944da35..b79daa21271 100644--- a/zerver/lib/export.py+++ b/zerver/lib/export.py@@ -572,7 +572,22 @@ def export_from_config(if config.filter_args is not None:filter_parms.update(config.filter_args)assert model is not None- query = model.objects.filter(**filter_parms)+ try:+ query = model.objects.filter(**filter_parms)+ except Exception:+ print(+ f"""+ Something about your Config seems to make it difficult+ to construct a query.++ table: {table}+ parent: {parent.table}++ filter_parms: {filter_parms}+ """+ )+ raise+rows = list(query)elif config.id_source: