Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #1562: dlo_9612_1.patch

File dlo_9612_1.patch, 0.6 KB (added by sayamindu, 4 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  
    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):