Merge "Fix example issue"
This commit is contained in:
commit
c6c114e740
@ -80,4 +80,7 @@ if __name__ == '__main__':
|
||||
LOG.debug("A debugging message")
|
||||
LOG.warning("A warning occurred")
|
||||
LOG.error("An error occurred")
|
||||
LOG.exception("An Exception occurred")
|
||||
try:
|
||||
raise Exception("This is exceptional")
|
||||
except Exception:
|
||||
LOG.exception("An Exception occurred")
|
||||
|
@ -97,4 +97,7 @@ if __name__ == '__main__':
|
||||
LOG.debug("A debugging message")
|
||||
LOG.warning("A warning occurred")
|
||||
LOG.error("An error occurred")
|
||||
LOG.exception("An Exception occurred")
|
||||
try:
|
||||
raise Exception("This is exceptional")
|
||||
except Exception:
|
||||
LOG.exception("An Exception occurred")
|
||||
|
@ -81,4 +81,7 @@ if __name__ == '__main__':
|
||||
LOG.debug("A debugging message") # Debug messages are not translated
|
||||
LOG.warning(_LW("A warning occurred"))
|
||||
LOG.error(_LE("An error occurred"))
|
||||
LOG.exception(_("An Exception occurred"))
|
||||
try:
|
||||
raise Exception(_("This is exceptional"))
|
||||
except Exception:
|
||||
LOG.exception(_("An Exception occurred"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user