saif-deepsource / apkleaks

Errors detected in .deepsource.toml.

Exception caught is very general PYL-W0703
Anti-pattern
Major
3 years ago3 years old
Catching too general exception Exception
139	def __del__(self):
140		try:
141			shutil.rmtree(self.tempdir)
142		except Exception:143			return
Catching too general exception Exception
 82				dex = self.tempdir + "/" + self.apk.package + ".dex"
 83				with open(dex, "wb") as classes:
 84					classes.write(zipped.read("classes.dex"))
 85			except Exception as e: 86				sys.exit(self.writeln(str(e), clr.WARNING))
 87		dec = "%s %s -d %s --deobf" % (self.jadx, dex, self.tempdir)
 88		os.system(dec)
Catching too general exception Exception
 68		if os.path.isfile(self.file) is True:
 69			try:
 70				self.apk = self.apk_info()
 71			except Exception as e: 72				sys.exit(self.writeln(str(e), clr.WARNING))
 73			else:
 74				return self.apk