Browse files

Fix same logic error in create_artist_full. :-p

  • Loading branch information...
1 parent 47d6736 commit 3ee9ec803e855165c70acc6c43b23e9a49f927f0 jorgenpt committed Feb 6, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/bindings/python/src/sessionstruct.pxi
View
10 src/bindings/python/src/sessionstruct.pxi
@@ -40,13 +40,13 @@ cdef class SessionStruct:
cdef Artist create_artist(self, artist* artist, bint take_owner=False):
cdef Artist instance
- if not artist:
- return None
-
instance = NEW_ARTIST(Artist)
instance.ds = self.ds
- instance.data = ArtistData()
- instance.data.data = artist
+ if not artist:
+ instance.data = None
+ else:
+ instance.data = ArtistData()
+ instance.data.data = artist
instance.take_owner = take_owner

0 comments on commit 3ee9ec8

Please sign in to comment.