Crashes when saving preferences when download subfolder is invalid
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Rapid Photo Downloader | Status tracked in Pyqt | |||||
Pyqt |
Fix Released
|
Medium
|
Damon Lynch |
Bug Description
To reproduce, set the Video (didn't try Photo) download subfolder to "/" in the preferences dialog and click close.
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
sys.
NameError: global name 'sys' is not defined
I fixed by importing sys and tried again:
The video subfolder preferences entered are invalid and cannot be used.
They will be reset to their default values.
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
misc.
NameError: global name 'PROGRAM_NAME' is not defined
I fixed by copying line 117 PROGRAM_NAME = _('Rapid Photo Downloader') from rapid/rapid.py and tried again:
[CRITICAL/
[ERROR/MainProcess] Error in Video Download Subfolders preferences
[ERROR/MainProcess] Sorry, these preferences contain an error:
[ERROR/MainProcess] /
[ERROR/MainProcess] Subfolder preferences should not start with a /.
Resetting to default values.
Traceback (most recent call last):
File "/usr/share/
preferences
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
PhotoRename
File "/usr/share/
gtk.
File "/usr/share/
d.set_
File "/usr/share/
raise AttributeError(key)
AttributeError: get_toplevel
Thanks for reporting the bug. It's probably been there for some years now!