diff --git a/examples/pycaosdb_example.py b/examples/pycaosdb_example.py index 5801ea0eb839804ddfb1467f6ca960d954ee3f8b..d128e4e6d01d3d868960c2646a18919f8f7be2f2 100755 --- a/examples/pycaosdb_example.py +++ b/examples/pycaosdb_example.py @@ -13,6 +13,7 @@ def main(): """Shows a few examples how to use the CaosDB library.""" conf = dict(caosdb.configuration.get_config().items("Connection")) print("##### Config:\n{}\n".format(conf)) + if conf["cacert"] == "/path/to/caosdb.ca.pem": print("Very likely, the path the the TLS certificate is not correct, " "please fix it.") @@ -25,7 +26,7 @@ def main(): rec_id = random.choice([rec.id for rec in result]) rec = caosdb.Record(id=rec_id).retrieve() print("##### Randomly retrieved Record:\n{}\n".format(rec)) - + if __name__ == "__main__": main()