diff options
Diffstat (limited to 'src/common/optparser.py')
-rw-r--r-- | src/common/optparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/optparser.py b/src/common/optparser.py index 86098d0b8..5c4f05da2 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -67,7 +67,7 @@ class OptionsParser: def read(self): try: fd = open(self.__filename) - except: + except Exception: if os.path.exists(self.__filename): #we talk about a file print _('error: cannot open %s for reading') % self.__filename @@ -128,7 +128,7 @@ class OptionsParser: # win32 needs this try: os.remove(self.__filename) - except: + except Exception: pass try: os.rename(self.__tempfile, self.__filename) @@ -360,7 +360,7 @@ class OptionsParser: ) con.commit() - except: + except Exception: pass con.close() gajim.config.set('version', '0.10.1.4') |