Permalink
Browse files

Improved exception message on generic detail view

  • Loading branch information...
1 parent badb4c2 commit 94bce330eac2ce6b6ea26be899148df69828de5e @Bouke committed Dec 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mvvm/viewmodel/generic.py
@@ -224,7 +224,8 @@ def cancel():
return Command(cancel)
def _get_object(self):
- if not self._object_proxy: raise NotImplementedError
+ if not self._object_proxy:
+ raise NotImplementedError('Object has not been set')
return self._object_proxy
def _set_object(self, object):

0 comments on commit 94bce33

Please sign in to comment.