Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/local/mounts.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/local/mounts.py')
-rw-r--r--sugar_network/local/mounts.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sugar_network/local/mounts.py b/sugar_network/local/mounts.py
index 0c36238..cfe9a1e 100644
--- a/sugar_network/local/mounts.py
+++ b/sugar_network/local/mounts.py
@@ -206,11 +206,12 @@ class _ProxyCommands(object):
reply.remove(prop)
request['reply'] = reply
elif command in (('POST', None), ('PUT', None)):
- for prop in _LOCAL_PROPS.keys():
- if prop in request.content:
- patch[prop] = request.content.pop(prop)
- if not request.content:
+ if request.content is None:
result = guid
+ else:
+ for prop in _LOCAL_PROPS.keys():
+ if prop in request.content:
+ patch[prop] = request.content.pop(prop)
if result is None:
result = super_call(request, response)