ccolas commited on
Commit
2ede252
1 Parent(s): e46d42c

Update src/music/pipeline/music_pipeline.py

Browse files
src/music/pipeline/music_pipeline.py CHANGED
@@ -70,8 +70,10 @@ def encode_music(url=None,
70
  print('processed hash: ', hashlib.md5(open(processed_path, 'rb').read()).hexdigest())
71
  print('encoded hash: ', hashlib.md5(open(encoded_path, 'rb').read()).hexdigest())
72
  print('rep hash: ', hashlib.md5(open(representation_path, 'rb').read()).hexdigest())
 
73
  if verbose: print(' ' * (level + 2) + f'Music processed in {int(time.time() - init_time)} seconds.')
74
- except:
 
75
  if verbose: print(' ' * (level + 2) + f'Music FAILED to process in {int(time.time() - init_time)} seconds.')
76
  representation = None
77
  handcoded_rep = None
 
70
  print('processed hash: ', hashlib.md5(open(processed_path, 'rb').read()).hexdigest())
71
  print('encoded hash: ', hashlib.md5(open(encoded_path, 'rb').read()).hexdigest())
72
  print('rep hash: ', hashlib.md5(open(representation_path, 'rb').read()).hexdigest())
73
+ print("rep:", representation[:10])
74
  if verbose: print(' ' * (level + 2) + f'Music processed in {int(time.time() - init_time)} seconds.')
75
+ except Exception as err:
76
+ print(err, error)
77
  if verbose: print(' ' * (level + 2) + f'Music FAILED to process in {int(time.time() - init_time)} seconds.')
78
  representation = None
79
  handcoded_rep = None