Skip to content

Commit

Permalink
specify exception type in except block
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Nov 27, 2024
1 parent b293e11 commit 4c635ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stuff/android_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_id():
arg="sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \"select * from main where name = 'android_id';\"",
env="ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n",
)
except:
except Exception:
return
else:
Logger.error(
Expand Down
2 changes: 1 addition & 1 deletion stuff/microg.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def copy(self):
else:
sub_arch = "x86"
if self.arch[1] == 64:
arch = f"{sub_arch}{'' if sub_arch=='arm' else '_'}64"
arch = f"{sub_arch}{'' if sub_arch == 'arm' else '_'}64"
for root, _, files in os.walk(src_dir):
flag = False
dir_name = os.path.basename(root)
Expand Down

0 comments on commit 4c635ef

Please sign in to comment.