1
0
Fork 0
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:
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: 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: