Save with no open file give python errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PoProofRead. poproofread has MOVED to github |
Won't Fix
|
High
|
TLE |
Bug Description
1) Open poproofread
2) Select "save" in the file menu
3) You get this error message on stderr:
Traceback (most recent call last):
File "/usr/lib/
self.ppr.save()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
with open(self.ppr_file, 'w') as f:
TypeError: coercing to Unicode: need string or buffer, NoneType found
1) Open poproofread
2) Write something in the comment window
3) Select "save" in the file menu
4) You get this error message on stderr:
Traceback (most recent call last):
File "/usr/lib/
if not self.check_
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: 'NoneType' object is not subscriptable
Changed in poproofread: | |
milestone: | none → 0.1.8 |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → TLE (k-nielsen81) |
Changed in poproofread: | |
status: | Fix Committed → Won't Fix |
Thanks for reporting this.
I forgot to check if the there was a file active when activating the save functionality.