Code optimisations and refactoring via Sourcery

This commit is contained in:
Nadir Chowdhury authored and GitHub committed 2021-02-24 21:26:51 -05:00
1 parent e090ee4308
commit 63ec23bac2
18 files changed
+47 -90

No files matched your search

+2 -3
View File
@@ -715,9 +715,8 @@ class Command(_BaseCommand):
except RuntimeError:
break
if not self.ignore_extra:
if not view.eof:
raise TooManyArguments('Too many arguments passed to ' + self.qualified_name)
if not self.ignore_extra and not view.eof:
raise TooManyArguments('Too many arguments passed to ' + self.qualified_name)
async def call_before_hooks(self, ctx):
# now that we're done preparing we can call the pre-command hooks