Skip to content

Commit 7f38e64

Browse files
authored
Update utils.py
1 parent 54c58f0 commit 7f38e64

File tree

1 file changed

+2
-1
lines changed
  • pythonforandroid/recipes/android/src/android

1 file changed

+2
-1
lines changed

pythonforandroid/recipes/android/src/android/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
__all__ = ('update_system_ui')
66

7+
78
def update_system_ui(
89
status_bar_color: list[float] | str,
910
navigation_bar_color: list[float] | str,
@@ -36,7 +37,7 @@ def update_system_ui(
3637
try:
3738
WindowCompat = autoclass("androidx.core.view.WindowCompat")
3839
inset_controller = WindowCompat.getInsetsController(window, decor_view)
39-
except Exception as e:
40+
except:
4041
inset_controller = None
4142

4243
def parse_color(value):

0 commit comments

Comments
 (0)