We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b58565 commit 24f8dcdCopy full SHA for 24f8dcd
patterns/structural/mvc.py
@@ -170,8 +170,8 @@ def main():
170
router.register("products", Controller, ProductModel, ConsoleView)
171
controller: object = router.resolve(argv[1])
172
173
- command: str = str(argv[2]) if len(argv) > 2 else None
174
- args: str = ' '.join(map(str, argv[3:])) if len(argv) > 3 else None
+ command: str = str(argv[2]) if len(argv) > 2 else ""
+ args: str = ' '.join(map(str, argv[3:])) if len(argv) > 3 else ""
175
176
if hasattr(controller, command):
177
command = getattr(controller, command)
0 commit comments