Crash on "Get commit message template" #72

Closed
diegorondini opened this Issue Feb 25, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@diegorondini

I get this crash when clicking on "Get commit message template". The crash doesn't however close the application.

https://bugzilla.redhat.com/show_bug.cgi?id=675721

backtrace

cmds.py:474:init:OSError: error: "None" does not exist

Traceback (most recent call last):
File "/usr/share/git-cola/lib/cola/qtutils.py", line 46, in broadcast
cola.notifier().broadcast(signal, _local_args, *_local_opts)
File "/usr/share/git-cola/lib/cola/notification.py", line 26, in broadcast
self.emit(signal, _args, *_opts)
File "/usr/share/git-cola/lib/cola/notification.py", line 32, in emit
fxn(_args, *_opts)
File "/usr/share/git-cola/lib/cola/cmdfactory.py", line 87, in run
return self.do(signal, _args, *_opts)
File "/usr/share/git-cola/lib/cola/cmdfactory.py", line 93, in do
cmdobj = cmdclass(_args, *_opts)
File "/usr/share/git-cola/lib/cola/cmds.py", line 492, in init
LoadCommitMessage.init(self, _config.get('commit.template'))
File "/usr/share/git-cola/lib/cola/cmds.py", line 474, in init
raise OSError('error: "%s" does not exist' % path)
OSError: error: "None" does not exist

Local variables in innermost frame:
path: None
self: <cola.cmds.LoadCommitTemplate object at 0x1fc4890>

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Feb 27, 2011

Member

cmds: Use 'UsageError' in the commit template command objects

Add error checking so that we can detect when users provide either
bad paths or unconfigured commit message templates.

Previously, an unconfigured "commit.template" git config variable
would result in a stacktrace. We now present users with a helpful
error message instead.

Closed by f9bb2c1

Signed-off-by: David Aguilar <davvid@gmail.com>

Member

davvid commented Feb 27, 2011

cmds: Use 'UsageError' in the commit template command objects

Add error checking so that we can detect when users provide either
bad paths or unconfigured commit message templates.

Previously, an unconfigured "commit.template" git config variable
would result in a stacktrace. We now present users with a helpful
error message instead.

Closed by f9bb2c1

Signed-off-by: David Aguilar <davvid@gmail.com>

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment