mirror of
https://github.com/myned/modufur.git
synced 2024-12-23 22:27:27 +00:00
Should fix wrong error catching
This commit is contained in:
parent
be805f9bb2
commit
1cc3a3736e
1 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ def get_args(ctx, args, *, rem=False, rm=False, lim=False):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
remaining.remove('-d')
|
remaining.remove('-d')
|
||||||
except KeyError:
|
except ValueError:
|
||||||
remaining.remove('-dm')
|
remaining.remove('-dm')
|
||||||
|
|
||||||
if rm:
|
if rm:
|
||||||
|
@ -134,10 +134,10 @@ def get_args(ctx, args, *, rem=False, rm=False, lim=False):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
remaining.remove('-r')
|
remaining.remove('-r')
|
||||||
except KeyError:
|
except ValueError:
|
||||||
try:
|
try:
|
||||||
remaining.remove('-rm')
|
remaining.remove('-rm')
|
||||||
except KeyError:
|
except ValueError:
|
||||||
remaining.remove('-remove')
|
remaining.remove('-remove')
|
||||||
|
|
||||||
if lim:
|
if lim:
|
||||||
|
|
Loading…
Reference in a new issue