about summary refs log tree commit diff stats
path: root/browse_slack/convert_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'browse_slack/convert_slack.py')
-rw-r--r--browse_slack/convert_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py
index 976c223d..b09d0df3 100644
--- a/browse_slack/convert_slack.py
+++ b/browse_slack/convert_slack.py
@@ -67,6 +67,6 @@ for channel in json.load(open('channels.json')):
 #?                     stderr.write(repr(item)+'\n')
                     print(f"({json.dumps(item['ts'])} {parent(item)} {json.dumps(channel['name'])} {by(item)} {json.dumps(item['text'])})")
                     item_idx[item['ts']] = idx
-                    idx += 1
+                    idx += 1  # only increment when actually used and no exception raised
                 except KeyError:
                     stderr.write(repr(item)+'\n')