diff --git a/swh/objstorage/api/server.py b/swh/objstorage/api/server.py --- a/swh/objstorage/api/server.py +++ b/swh/objstorage/api/server.py @@ -43,7 +43,7 @@ def get_objstorage(): global objstorage - if not objstorage: + if objstorage is None: objstorage = get_swhobjstorage(**app.config["objstorage"]) return objstorage