mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 11:16:14 +02:00
nose2 replaces nose for the unit tests
This commit is contained in:
parent
71f6c08c28
commit
04531488ca
4 changed files with 75 additions and 12 deletions
|
@ -123,9 +123,9 @@ def reveal(input_image: Union[str, IO[bytes]], encoding: str = "UTF-8", shift: i
|
|||
if bitab[-1] == ":" and limit is None:
|
||||
try:
|
||||
limit = int("".join(bitab[:-1]))
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if len(bitab) - len(str(limit)) - 1 == limit:
|
||||
img.close()
|
||||
return "".join(bitab)[len(str(limit)) + 1 :]
|
||||
return "".join(bitab)[len(str(limit)) + 1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue