Show More
@@ -229,22 +229,22 b' else:' | |||||
229 | SystemExit Traceback (most recent call last) |
|
229 | SystemExit Traceback (most recent call last) | |
230 | <BLANKLINE> |
|
230 | <BLANKLINE> | |
231 | ... |
|
231 | ... | |
232 | 30 except IndexError: |
|
232 | 30 except IndexError: | |
233 | 31 mode = 'div' |
|
233 | 31 mode = 'div' | |
234 | ---> 33 bar(mode) |
|
234 | ---> 33 bar(mode) | |
235 | mode = 'exit' |
|
235 | mode = 'exit' | |
236 | <BLANKLINE> |
|
236 | <BLANKLINE> | |
237 | ... in bar(mode='exit') |
|
237 | ... in bar(mode='exit') | |
238 | ... except: |
|
238 | ... except: | |
239 | ... stat = 1 |
|
239 | ... stat = 1 | |
240 | ---> ... sysexit(stat, mode) |
|
240 | ---> ... sysexit(stat, mode) | |
241 | mode = 'exit' |
|
241 | mode = 'exit' | |
242 | stat = 2 |
|
242 | stat = 2 | |
243 | ... else: |
|
243 | ... else: | |
244 | ... raise ValueError('Unknown mode') |
|
244 | ... raise ValueError('Unknown mode') | |
245 | <BLANKLINE> |
|
245 | <BLANKLINE> | |
246 | ... in sysexit(stat=2, mode='exit') |
|
246 | ... in sysexit(stat=2, mode='exit') | |
247 | 10 def sysexit(stat, mode): |
|
247 | 10 def sysexit(stat, mode): | |
248 | ---> 11 raise SystemExit(stat, f"Mode = {mode}") |
|
248 | ---> 11 raise SystemExit(stat, f"Mode = {mode}") | |
249 | stat = 2 |
|
249 | stat = 2 | |
250 | mode = 'exit' |
|
250 | mode = 'exit' |
General Comments 0
You need to be logged in to leave comments.
Login now