Skip to content

Commit 1e3e6f0

Browse files
committed
qtvcp -make_gui: report the actual error message of the user command file
More helpful then just saying there is an error.
1 parent 4d86b21 commit 1e3e6f0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/python/qtvcp/qt_makegui.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,17 +346,14 @@ def add_handler(method, f):
346346
# this is the function that is injected into the handler file to read an override file
347347
# this will be called from qtvcp.py later
348348
def call_user_command_(self, klass, rcfile = "~/.qtvcprc"):
349-
#user_command_file = inifile.find("DISPLAY", "USER_COMMAND_FILE") or ""
350-
#if user_command_file:
351-
# rcfile = user_command_file
352349
rcfile = os.path.expanduser(rcfile)
353350
if os.path.exists(rcfile):
354351
log.info('Handler Override file found at: yellow<{}>'.format(rcfile))
355352
try:
356353
local = {'self': klass, 'rcfile': rcfile}
357354
exec(compile(open(rcfile, "rb").read(), rcfile, 'exec'),local)
358355
except Exception as e:
359-
log.warning(e)
356+
log.exception(e)
360357
else:
361358
log.info('No Handler Override file at: yellow<{}>'.format(rcfile))
362359

0 commit comments

Comments
 (0)