Skip to content

Commit 5a957c4

Browse files
committed
changelog, skip sharding if the serializer doesn't support
1 parent 83f7e6f commit 5a957c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.6.1 (2023-09-13)
2+
------------------
3+
* Feature: GridFS document storage in Mongo-backed instances is now sharded if the mongo server supports it.
4+
15
0.6.0 (2023-09-01)
26
------------------
37
* Feature: Reports are now grouped by their containing folder on the main UI.

notebooker/web/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ def main(web_config: WebappConfig):
139139
flask_app = create_app(web_config)
140140
flask_app = setup_app(flask_app, web_config)
141141
serializer = get_serializer_from_cls(web_config.SERIALIZER_CLS, **web_config.SERIALIZER_CONFIG)
142-
serializer.enable_sharding()
142+
try:
143+
serializer.enable_sharding()
144+
except AttributeError:
145+
pass
143146
start_app(web_config)
144147
logger.info("Notebooker is now running at http://0.0.0.0:%d", web_config.PORT)
145148
http_server = WSGIServer(("0.0.0.0", web_config.PORT), flask_app)

0 commit comments

Comments
 (0)