diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-10 04:25:44 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-10 04:25:44 -0700 |
commit | 639f89ca42ed8082f6ae60ba7e11fbe0fa6bae1c (patch) | |
tree | ae8ea14350337f2842da03af047eb6b84125166f /browse_slack/convert_slack.py | |
parent | f09ee2aa19922e7416ee85d376e60f3e03c860ef (diff) | |
download | mu-639f89ca42ed8082f6ae60ba7e11fbe0fa6bae1c.tar.gz |
.
Vestige from when we were scanning all files in the current directory rather than channels.json.
Diffstat (limited to 'browse_slack/convert_slack.py')
-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'])})") |