diff --git a/beets/ui/commands.py b/beets/ui/commands.py index d818b397f..2534e6f76 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -489,7 +489,7 @@ def manual_id(singleton): # Find the first thing that looks like a UUID/MBID. match = re.search('[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}', entry) if match: - return match.group() + return match.group() else: log.error('Invalid MBID.') return None diff --git a/beets/util/pipeline.py b/beets/util/pipeline.py index f9d3b27e9..8d2bb0dd1 100644 --- a/beets/util/pipeline.py +++ b/beets/util/pipeline.py @@ -432,7 +432,7 @@ if __name__ == '__main__': print('processing %i' % num) time.sleep(3) if num == 3: - raise Exception() + raise Exception() num = yield num * 2 def exc_consume(): while True: