1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Should fix wrong error catching

This commit is contained in:
Myned 2017-10-17 18:04:43 -04:00
parent be805f9bb2
commit 1cc3a3736e

View file

@ -124,7 +124,7 @@ def get_args(ctx, args, *, rem=False, rm=False, lim=False):
try:
remaining.remove('-d')
except KeyError:
except ValueError:
remaining.remove('-dm')
if rm:
@ -134,10 +134,10 @@ def get_args(ctx, args, *, rem=False, rm=False, lim=False):
try:
remaining.remove('-r')
except KeyError:
except ValueError:
try:
remaining.remove('-rm')
except KeyError:
except ValueError:
remaining.remove('-remove')
if lim: