Changes between Initial Version and Version 2 of Ticket #33295
- Timestamp:
- Nov 17, 2021, 5:20:42 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33295
- Property Owner changed from to
-
Ticket #33295 – Description
initial v2 1 1 2 We pretty much know and understand that only a string could be passed in self.stdout.write function 3 Just in case if we pass a list into it, like the below piece of code: 2 4 {{{ 3 5 class Command(BaseCommand): … … 6 8 }}} 7 9 8 The following piece of code throws an Attribute error stating that list' object has no attribute 'endswith', it is because the datatype of msg is not checked in handle function while writing the source code.10 It throws an Attribute error stating that list' object has no attribute 'endswith', it is because the datatype of msg is not checked in handle function while writing write method in Outputwrapper class. 9 11 10 12 Here is the full traceback of the error