Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/model/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/model/context.py')
-rw-r--r--sugar_network/model/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/model/context.py b/sugar_network/model/context.py
index a9962a9..053228f 100644
--- a/sugar_network/model/context.py
+++ b/sugar_network/model/context.py
@@ -29,7 +29,7 @@ class Context(db.Resource):
@type.setter
def type(self, value):
- if 'package' in value and 'common' not in self['layer']:
+ if value and 'package' in value and 'common' not in self['layer']:
self['layer'] = tuple(self['layer']) + ('common',)
return value