utext crashes when opening an empty file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uText |
New
|
Undecided
|
Unassigned |
Bug Description
When running the command to open an empty file with utext it crashes:
/opt/extras.
*******
None
*******
Traceback (most recent call last):
File "/opt/extras.
uTextEx = uText(filename)
File "/opt/extras.
self.
File "/opt/extras.
ans = data.decode(
TypeError: decode() argument 1 must be str, not None
The same applies for opening a file via right-click menu. Without a file the Program is working fine, if the file is not empty its working properly as well.