Skip to content

Commit e42238f

Browse files
committed
Updated error code comparison when handling ProcessExceptions with hg commands.
1 parent 093b390 commit e42238f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def outgoing():
520520
pquery([hg_cmd, 'outgoing'])
521521
return 1
522522
except ProcessException as e:
523-
if e[0] != 1:
523+
if e.args[0] != 1:
524524
raise e
525525
return 0
526526

0 commit comments

Comments
 (0)