From dbe6576a72bbc3f5a0acfab1b56b2e7308a5452c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marein=20K=C3=B6nings?= Date: Wed, 29 Apr 2015 23:36:11 +0200 Subject: [PATCH] 'put' same behaviour as 'put_async' when 'name' is None The old behaviour causes an assertion error when name == 0 --- firebase/firebase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase/firebase.py b/firebase/firebase.py index 2e55865..f8b52e9 100644 --- a/firebase/firebase.py +++ b/firebase/firebase.py @@ -292,7 +292,7 @@ def put(self, url, name, data, params=None, headers=None, connection=None): the server, because the request will be made with ``silent`` parameter. ``data`` must be a JSONable value. """ - assert name, 'Snapshot name must be specified' + if name is None: name = '' params = params or {} headers = headers or {} endpoint = self._build_endpoint_url(url, name)