diff options
| -rwxr-xr-x | mat-gui | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -34,7 +34,7 @@ class CFile(object): | |||
| 34 | try: | 34 | try: |
| 35 | self.file = mat.create_class_file(filename, backup, add2archive) | 35 | self.file = mat.create_class_file(filename, backup, add2archive) |
| 36 | except: | 36 | except: |
| 37 | self.file = None | 37 | self.file = False |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | class GUI: | 40 | class GUI: |
| @@ -295,7 +295,7 @@ data loss, but clean more efficiently')) | |||
| 295 | return False | 295 | return False |
| 296 | 296 | ||
| 297 | cf = CFile(filename, self.backup, self.add2archive) | 297 | cf = CFile(filename, self.backup, self.add2archive) |
| 298 | if cf.file is not None: # if the file is supported by the mat | 298 | if cf.file is not False: # if the file is supported by the mat |
| 299 | self.liststore.append([cf, cf.file.basename, | 299 | self.liststore.append([cf, cf.file.basename, |
| 300 | cf.file.mime, _('unknow'), 'None']) | 300 | cf.file.mime, _('unknow'), 'None']) |
| 301 | return False | 301 | return False |
