Orange Forum • View topic - Exception thrown when Updating a zero-length file.

Exception thrown when Updating a zero-length file.

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Exception thrown when Updating a zero-length file.

Postby dhaglin » Mon Jun 11, 2007 14:29

In updateOrange.py, around line 498, in method updateDownloadStatus, it is a good idea to check for tot_size>0.

Code: Select all
def updateDownloadStatus(self, blk_cnt, blk_size, tot_size):
     if tot_size>0:
         self.statusBar.message("Downloaded %.1f%%" % (100*min(tot_size, blk_cnt*blk_size) / tot_size))

Postby Janez » Sun Jul 08, 2007 15:16

Thanks :)

Janez


Return to Bugs