Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on "Get commit message template" #72

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

Crash on "Get commit message template" #72

diegorondini opened this issue Feb 25, 2011 · 1 comment

Comments

@diegorondini
Copy link

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
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants