Skip to content

Commit b24c102

Browse files
committed
no need to catch invalid func
1 parent f2e8982 commit b24c102

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ffmpeg_downloader/__main__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,7 @@ def main():
396396

397397
args = parser.parse_args()
398398

399-
try:
400-
args.func(args)
401-
except:
402-
print('Unknown command.')
403-
parser.print_help()
399+
args.func(args)
404400

405401

406402
if __name__ == "__main__":

0 commit comments

Comments
 (0)