Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix #587
Browse files Browse the repository at this point in the history
  • Loading branch information
FeeiCN committed Sep 19, 2017
1 parent e36f014 commit 41af2e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cobra/pickup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ def files(self, absolute_path, level=1):
self.file_info(directory, filename)
else:
for filename in os.listdir(absolute_path):
directory = os.path.join(absolute_path, filename)
try:
directory = os.path.join(absolute_path, filename)
except UnicodeDecodeError as e:
logger.debug('Exception unicode {e}'.format(e=e))
continue

# Directory Structure
logger.debug('[PICKUP] [FILES] ' + '| ' * (level - 1) + '|--' + filename)
Expand Down

0 comments on commit 41af2e4

Please sign in to comment.