mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-29 23:17:53 +00:00
Removed unused variable
This commit is contained in:
parent
2f27fc3563
commit
15c439ff6c
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ class AdwcustomizerApplication(Adw.Application):
|
|||
if preset.get('palette') is None:
|
||||
raise KeyError('palette')
|
||||
self.custom_presets[file_name.replace('.json', '')] = preset['name']
|
||||
except Exception as ex:
|
||||
except Exception:
|
||||
self.global_errors.append({
|
||||
"error": _("Failed to load preset"),
|
||||
"element": file_name,
|
||||
|
@ -326,13 +326,13 @@ class AdwcustomizerApplication(Adw.Application):
|
|||
file = Gio.File.new_for_path(os.path.join(os.environ['XDG_CONFIG_HOME'], "/gtk-3.0/gtk.css"))
|
||||
try:
|
||||
file.delete()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
if widget.get_app_types()["gtk3"]:
|
||||
file = Gio.File.new_for_path(os.path.join(os.environ['XDG_CONFIG_HOME'], "/gtk-3.0/gtk.css"))
|
||||
try:
|
||||
file.delete()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def show_about_window(self, *_args):
|
||||
|
|
Loading…
Reference in a new issue