mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue