Skip to content

Commit

Permalink
app, #319: re-raise alias/flag help-msg errors
Browse files Browse the repository at this point in the history
+ After @minrk codereview: #319 (comment)
  • Loading branch information
ankostis committed Sep 22, 2016
1 parent ea395a3 commit d327731
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions traitlets/config/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ def print_alias_help(self):
lines.append(indent("Equivalent to: [%s]" % longname))
except Exception as ex:
self.log.error('Failed collecting help-message for aias %r, due to: %s',
alias, ex, exc_info=1)
alias, ex)
raise

# lines.append('')
print(os.linesep.join(lines))

Expand All @@ -357,7 +359,9 @@ def print_flag_help(self):
lines.append(indent(dedent(cfg_txt)))
except Exception as ex:
self.log.error('Failed collecting help-message for flag %r, due to: %s',
flags, ex, exc_info=1)
flags, ex)
raise

# lines.append('')
print(os.linesep.join(lines))

Expand Down

0 comments on commit d327731

Please sign in to comment.