Skip to content

Commit 6e71203

Browse files
committed
Fix deprecated config override (config.Class may not yet exist)
1 parent 30ed6a3 commit 6e71203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binderhub/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def _build_config_deprecated(self, change):
786786
self.log.warning(
787787
"BinderHub.%s is deprecated, use %s.%s", change.name, dest_cls, dest_name
788788
)
789-
self.config.get(dest_cls)[dest_name] = change.new
789+
self.config[dest_cls][dest_name] = change.new
790790

791791
@staticmethod
792792
def add_url_prefix(prefix, handlers):

0 commit comments

Comments
 (0)