Merge pull request #436 from GerbenWelter/fix/bg_image_err

Fix the background image loading exception handling
This commit is contained in:
Matt Rose 2021-05-16 16:29:42 -04:00 committed by GitHub
commit 8f52cd0b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class Terminal(Gtk.VBox):
except Exception as e: except Exception as e:
self.background_image = None self.background_image = None
self.vte.set_clear_background(True) self.vte.set_clear_background(True)
err('error loading background image: %s, %s' % (type(ex).__name__,e)) err('error loading background image: %s, %s' % (type(e).__name__,e))
self.background_alpha = self.config['background_darkness'] self.background_alpha = self.config['background_darkness']
self.vte.set_allow_hyperlink(True) self.vte.set_allow_hyperlink(True)