Division by zero error when scanning device that does not report its size

Bug #1764167 reported by Assaf Stoler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Fix Released
Low
Damon Lynch

Bug Description

As soon as I clicked on a specific (SMB mounted) folder to scan / import photo, the following error dialog was presented,

Log contain:

2018-04-15 12:05:58 ERROR excepthook.py 67: An unhandled exception occurred
2018-04-15 12:05:58 ERROR excepthook.py 68: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/raphodo/devicedisplay.py", line 1091, in paint
    percent_used = '{0:.0%}'.format(bytes_used / storage_space.bytes_total)
ZeroDivisionError: division by zero

system is Ubuntu 18.04 beta 2

Related branches

Revision history for this message
Assaf Stoler (assaf.stoler) wrote :
Revision history for this message
Damon Lynch (dlynch3) wrote :

Until the bug is fixed, you may like to investigate determining how to mount the NAS so that it reports basic storage information like its size.

Also keep in mind that Rapid Photo Downloader is a tool to get data off the camera / memory card / external drive and onto the computer, with on-the-fly back ups and file renaming being optional. It's not designed to be a general purpose renaming tool for files you have already worked on using a photo editing program.

Changed in rapid:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Damon Lynch (dlynch3)
milestone: none → 0.9.10
Damon Lynch (dlynch3)
summary: - Division by zero error when scanning for import (SMB mount)
+ Division by zero error when scanning device that does not report its
+ size
Damon Lynch (dlynch3)
Changed in rapid:
status: Triaged → Fix Committed
Damon Lynch (dlynch3)
Changed in rapid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.