Skip to content

Commit 4cbafc8

Browse files
Prepare the new release.
1 parent 9e4d7ad commit 4cbafc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyandrozoo/api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ANDROZOO_URL = 'https://androzoo.uni.lu/api/download'
1010

1111
def exception_handler(request, exception):
12-
print('Request failed: {}'.format(exception))
12+
print('Request failed: {}'.format(request.url))
1313

1414
class pyAndroZoo():
1515
def __init__(self, apikey=None, url=ANDROZOO_URL):
@@ -22,6 +22,8 @@ def __write_file(self, r, **kwargs):
2222
if r.status_code == 200:
2323
with open(sha256+'.apk', "wb") as apk_file:
2424
apk_file.write(r.content)
25+
else:
26+
print('Request failed for: {}'.format(sha256))
2527
return r
2628

2729
def get(self, sha256_list):

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='pyAndroZoo',
20-
version='0.2',
20+
version='0.3',
2121
author='Cédric Bonhomme',
2222
author_email='cedric@cedricbonhomme.org',
2323
packages=packages,

0 commit comments

Comments
 (0)