Skip to content

Commit

Permalink
Add lib kwarg to process_events()
Browse files Browse the repository at this point in the history
Without this fix, the following exception is thrown:

    Traceback (most recent call last):
    File "/data/jan/Projects/beets/beets/plugins.py", line 140, in wrapper
        return func(*args, **kwargs)
    TypeError: process_events() got an unexpected keyword argument 'lib'

The lib kwarg has been introduced by this commit in beetbox/beets:

    commit 2ad5b4c665bd270243d7e31f77680e969d7cb315
    Author: Dang Mai <contact@dangmai.net>
    Date:   Thu Jan 31 16:33:53 2013 -0500

        Add lib parameter for cli_exit

This is a partial fix for issue sbarakat#38.
  • Loading branch information
Holzhaus authored and drizzt committed May 2, 2020
1 parent df9d7f1 commit 896ea09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/copyartifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def collect_artifacts(self, item, source, destination):
}])
self._dirs_seen.extend([source_path])

def process_events(self):
def process_events(self, lib):
for item in self._process_queue:
self.process_artifacts(item['files'], item['mapping'], False)

Expand Down

0 comments on commit 896ea09

Please sign in to comment.