diff options
-rw-r--r-- | browse_slack/convert_slack.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py index a1a91278..ee8de392 100644 --- a/browse_slack/convert_slack.py +++ b/browse_slack/convert_slack.py @@ -79,10 +79,7 @@ def filenames(dir): yield result for dir in channels.values(): - try: - for filename in filenames(dir): - print(filename) - for item in contents(filename): - print(f"({json.dumps(item['name'])} {json.dumps(dir)} {item['by']} {json.dumps(item['contents'])})") - except NotADirectoryError: - pass + for filename in filenames(dir): + print(filename) + for item in contents(filename): + print(f"({json.dumps(item['name'])} {json.dumps(dir)} {item['by']} {json.dumps(item['contents'])})") |