Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/helpers.py')
-rw-r--r--src/common/helpers.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/helpers.py b/src/common/helpers.py
index d9648281e..d5605c18a 100644
--- a/src/common/helpers.py
+++ b/src/common/helpers.py
@@ -69,7 +69,7 @@ try:
import winsound # windows-only built-in module for playing wav
import win32api
import win32con
-except:
+except Exception:
pass
special_groups = (_('Transports'), _('Not in Roster'), _('Observers'), _('Groupchats'))
@@ -447,7 +447,7 @@ def launch_browser_mailer(kind, uri):
if os.name == 'nt':
try:
os.startfile(uri) # if pywin32 is installed we open
- except:
+ except Exception:
pass
else:
@@ -474,14 +474,14 @@ def launch_browser_mailer(kind, uri):
command = build_command(command, uri)
try:
exec_command(command)
- except:
+ except Exception:
pass
def launch_file_manager(path_to_open):
if os.name == 'nt':
try:
os.startfile(path_to_open) # if pywin32 is installed we open
- except:
+ except Exception:
pass
else:
if gajim.config.get('openwith') == 'gnome-open':
@@ -500,7 +500,7 @@ def launch_file_manager(path_to_open):
command = build_command(command, path_to_open)
try:
exec_command(command)
- except:
+ except Exception:
pass
def play_sound(event):
@@ -524,7 +524,7 @@ def play_sound_file(path_to_soundfile):
try:
winsound.PlaySound(path_to_soundfile,
winsound.SND_FILENAME|winsound.SND_ASYNC)
- except:
+ except Exception:
pass
elif os.name == 'posix':
if gajim.config.get('soundplayer') == '':
@@ -660,7 +660,7 @@ def ensure_utf8_string(string):
'''make sure string is in UTF-8'''
try:
string = decode_string(string).encode('utf-8')
- except:
+ except Exception:
pass
return string
@@ -702,7 +702,7 @@ r'Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders')
try:
val = str(win32api.RegQueryValueEx(rkey, varname)[0])
val = win32api.ExpandEnvironmentStrings(val) # expand using environ
- except:
+ except Exception:
pass
finally:
win32api.RegCloseKey(rkey)