mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Unused local variables should be removed'.
This commit is contained in:
committed by
Akshay Joshi
parent
1fbf298d30
commit
dd27e08a98
@@ -72,7 +72,7 @@ def find_replace(directory, find, replace):
|
||||
print("Done")
|
||||
else:
|
||||
print("N/A")
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
failed.append(current_file)
|
||||
print("FAILED")
|
||||
|
||||
|
@@ -65,7 +65,7 @@ def get_python_deps():
|
||||
|
||||
try:
|
||||
distribution = pkg_resources.get_distribution(pkg)
|
||||
except IndexError as e:
|
||||
except IndexError:
|
||||
# The package probably isn't required on this version of Python,
|
||||
# thus we have no info about it.
|
||||
have_unknowns = True
|
||||
|
@@ -61,11 +61,11 @@ def get_chrome_version(args):
|
||||
def _read_registry(root, key, value):
|
||||
try:
|
||||
hkey = winreg.OpenKey(root, key)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return None
|
||||
try:
|
||||
(val, typ) = winreg.QueryValueEx(hkey, value)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
winreg.CloseKey(hkey)
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user