mirror of https://gitlab.com/bashrc2/epicyon
Remove old hashtags while updating hashtag swarm
parent
94f9daeec4
commit
3c17749dae
2
inbox.py
2
inbox.py
|
@ -200,6 +200,7 @@ def _update_cached_hashtag_swarm(base_dir: str, nickname: str, domain: str,
|
|||
except OSError:
|
||||
print('EX: unable to write cached hashtag swarm ' +
|
||||
cached_hashtag_swarm_filename)
|
||||
remove_old_hashtags(base_dir, 3)
|
||||
return False
|
||||
|
||||
|
||||
|
@ -270,7 +271,6 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str,
|
|||
except OSError as ex:
|
||||
print('EX: Failed to write entry to tags file ' +
|
||||
tags_filename + ' ' + str(ex))
|
||||
remove_old_hashtags(base_dir, 3)
|
||||
|
||||
# automatically assign a category to the tag if possible
|
||||
category_filename = tags_dir + '/' + tag_name + '.category'
|
||||
|
|
Loading…
Reference in New Issue