Ticket #1562: dlo_9612_1.patch

File dlo_9612_1.patch, 628 bytes (added by sayamindu, 11 years ago)

Updated patch

  • src/carquinyol/layoutmanager.py

    diff --git a/src/carquinyol/layoutmanager.py b/src/carquinyol/layoutmanager.py
    index dc3fde6..59710f2 100644
    a b class LayoutManager(object): 
    4646        version_path = os.path.join(self._root_path, 'version')
    4747        version = 0
    4848        if os.path.exists(version_path):
    49             version = int(open(version_path, 'r').read())
     49            try:
     50                version = int(open(version_path, 'r').read())
     51            except ValueError:
     52                version = 0
     53
    5054        return version
    5155
    5256    def set_version(self, version):