gett-cli / gett_uploader.py

Diff from to

gett_uploader.py

             print('Found %d share(s):' % len(found_in_shares))
 
             for share in found_in_shares:
-                print(' - %s  %s%s' % (share.url.ljust(max_url), ' '*(maximax-max_url), shorten(share.title, 75 - max_url)))
+                print(' - %s  %s%s' % (share.url.ljust(max_url), ' '*(maximax-max_url), shorten(share.title or '', 75 - max_url)))
         else:
             print('Nothing found in shares.')
 
             print('Found %d file(s):' % sum(map(len, found_in_files.values())))
 
             for share, files in found_in_files.items():
-                print(' - Share %s  %s%s' % (share.url.ljust(max_url_shares), ' '*(maximax-max_url_shares-6), shorten(share.title, 69 - max_url_shares)))
+                print(' - Share %s  %s%s' % (share.url.ljust(max_url_shares), ' '*(maximax-max_url_shares-6), shorten(share.title or '', 69 - max_url_shares)))
 
                 for file in files:
                     print('    - %s  %s%s' % (file.url.ljust(max_url_files), ' '*(maximax-max_url_files-6), shorten(file.name, 72 - max_url_files)))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.