mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 02:23:07 +02:00
Vimwiki: Warn about stale UUIDs and replace them
This commit is contained in:
parent
832dfa40b7
commit
241e4c5fdc
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,10 @@ class VimwikiTask(object):
|
|||
self.task = tw.tasks.get(uuid=self.uuid)
|
||||
except Task.DoesNotExist:
|
||||
self.task = Task(tw)
|
||||
# If task cannot be loaded, we need to remove the UUID
|
||||
vim.command('echom UUID not found:"%s",'
|
||||
'will be replaced if saved' % self.uuid)
|
||||
self.uuid = None
|
||||
else:
|
||||
self.task = Task(tw)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue