Skip to content

Commit

Permalink
Only parse changeResponse if changeResponse is not empty. Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kmpeters committed Dec 12, 2018
1 parent ae2ac04 commit 86eb2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,9 +1324,10 @@ def changeTitle(self, *args):
#!print "changeTitle(", args, ")"
changeResponse = self._getChangeInput()
#!print changeResponse
oldGroup, oldTitle, newGroup, newTitle = changeResponse

if changeResponse != []:
oldGroup, oldTitle, newGroup, newTitle = changeResponse

#
existingTitles = self.logObj.collectEntries(newGroup, 'title')
if newTitle in existingTitles:
Expand Down

0 comments on commit 86eb2a9

Please sign in to comment.