Ignore:
Timestamp:
05/25/09 16:31:53 (11 years ago)
Author:
sander
Message:

Generate an exception when the result document is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/factory/src/backends/__init__.py

    r171 r174  
    116116                        file.close() 
    117117                except (IOError): 
    118                         raise BackendException('Could not read file %s' % path) 
     118                        raise BackendException('Could not read file %s' % path, True) 
     119 
     120                if contents == '': 
     121                        raise BackendException('File %s is empty' % path, True) 
    119122 
    120123                if encode: 
Note: See TracChangeset for help on using the changeset viewer.