Browse Source

if we don't find anything, print a warning and continue, don't

stop..

[git-p4: depot-paths = "//depot/": change = 771]
replace/4e84fdb41ea781c7a8f872baa423e8b3be4045a7
John-Mark Gurney 19 years ago
parent
commit
e5c3c3d795
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      FSStorage.py

+ 2
- 1
FSStorage.py View File

@@ -99,7 +99,8 @@ def dofileadd(cd, parent, urlbase, path, name):
elif mimetoklass.has_key(ty): elif mimetoklass.has_key(ty):
klass = mimetoklass[ty] klass = mimetoklass[ty]
else: else:
raise KeyError, 'no item for mt: %s' % mt
log.msg('no item for mt: %s' % mt)
return


return cd.addItem(parent, klass, name, urlbase = urlbase, return cd.addItem(parent, klass, name, urlbase = urlbase,
path = os.path.join(path, name), mimetype = mt) path = os.path.join(path, name), mimetype = mt)


Loading…
Cancel
Save