Skip to content

Commit 24f8dcd

Browse files
committed
Fixed bug
1 parent 3b58565 commit 24f8dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patterns/structural/mvc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def main():
170170
router.register("products", Controller, ProductModel, ConsoleView)
171171
controller: object = router.resolve(argv[1])
172172

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
173+
command: str = str(argv[2]) if len(argv) > 2 else ""
174+
args: str = ' '.join(map(str, argv[3:])) if len(argv) > 3 else ""
175175

176176
if hasattr(controller, command):
177177
command = getattr(controller, command)

0 commit comments

Comments
 (0)