cc-4228: removed two subtle bugs where hooks were added wrong and packing and hooking was called in wrong order
This commit is contained in:
parent
c1cc1c8fba
commit
2ec3e9f72f
|
@ -84,8 +84,8 @@ class BaseEvent(Loggable):
|
||||||
# pack will only throw an exception if it processes one file but this
|
# pack will only throw an exception if it processes one file but this
|
||||||
# is a little bit hacky
|
# is a little bit hacky
|
||||||
try:
|
try:
|
||||||
ret = self.pack()
|
|
||||||
self._pack_hook()
|
self._pack_hook()
|
||||||
|
ret = self.pack()
|
||||||
return ret
|
return ret
|
||||||
except BadSongFile as e: return [e]
|
except BadSongFile as e: return [e]
|
||||||
|
|
||||||
|
@ -95,7 +95,6 @@ class BaseEvent(Loggable):
|
||||||
self._raw_event = evt
|
self._raw_event = evt
|
||||||
self.path = evt.path
|
self.path = evt.path
|
||||||
self.__class__ = evt.__class__
|
self.__class__ = evt.__class__
|
||||||
self.add_safe_pack_hook(evt._pack_hook)
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
class FakePyinotify(object):
|
class FakePyinotify(object):
|
||||||
|
|
Loading…
Reference in New Issue