peircej / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

dirrctory "jpg"cause an error on import or refresh #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add or refresh dir with "jpg" subfolder
2.
3.

What is the expected output? What do you see instead?
Traceback (most recent call last):
   File "./jbrout.py", line 1540, in on_menu_refresh
    self.on_drop_folders_from_os(model,[path])
   File "./jbrout.py", line 1640, in on_drop_folders_from_os
    for nb in iterator:
   File "/home/kefiiir/soft/jbrout/jbrout/db.py", line 161, in add
    self.__addPhoto( nodeDir,file ,tags,filesInBasket)
   File "/home/kefiiir/soft/jbrout/jbrout/db.py", line 194, in __addPhoto
    raise Exception(err+"\nPhoto has incorrect exif/iptc tags, can't be imported :\n"+str([file,]))
 Exception: Traceback (most recent call last):
  File "/home/kefiiir/soft/jbrout/jbrout/db.py", line 183, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "/home/kefiiir/soft/jbrout/jbrout/tools.py", line 184, in __init__
    assert os.path.isfile(file)
AssertionError

Photo has incorrect exif/iptc tags, can't be imported :
[u'/home/kefiiir/doc/photo/00_raw/1/jpg']

What version of the product are you using? On what operating system?
SVN r 300
Linux

Please provide any additional information below.

Original issue reported on code.google.com by Oleg.Bla...@gmail.com on 30 Jun 2010 at 7:54

GoogleCodeExporter commented 8 years ago
I can confirm this.

If i import a folder containing a folder with name ending in ".jpg", i get a 
python error like Oleg got.

I saw it using Windows XP and Linux with jbrout 0.3.284

Original comment by p...@gmx.fr on 9 Oct 2010 at 5:17

GoogleCodeExporter commented 8 years ago
closed in r310

thanks

Original comment by manat...@gmail.com on 11 Oct 2010 at 6:18