Skip to content

Commit

Permalink
app, ipython#319: re-raise alias/flag help-msg errors
Browse files Browse the repository at this point in the history
+ After @minrk codereview: ipython#319 (comment)
  • Loading branch information
ankostis committed Sep 22, 2016
1 parent df74127 commit 4a5bc60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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 @@ -358,6 +360,8 @@ def print_flag_help(self):
except Exception as ex:
self.log.error('Failed collecting help-message for flag %r, due to: %s',
flags, ex, exc_info=1)
raise

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

Expand Down

0 comments on commit 4a5bc60

Please sign in to comment.