Commits

mickael9 committed 93fbfe5

Oops.

Comments (0)

Files changed (2)

         print('--- %-20s %s [%s]' % (file.name, size, file.url))
     print()
 
+def entry_point():
+    try:
+        main()
+    except APIError as ex:
+        print('API error : %s' % ex)
 
 def main():
     signal.signal(signal.SIGINT, signal.SIG_DFL)
 
 
 if __name__ == '__main__':
-    try:
-        main()
-    except APIError as ex:
-        print('API error : %s' % ex)
-
+    entry_point()
       py_modules=['gett', 'gett_uploader'],
       entry_points = {
           'console_scripts': [
-              'gett = gett_uploader:main'
+              'gett = gett_uploader:entry_point'
           ]
       }
      )