Skip to content

Commit

Permalink
fix: [showpaste] fix: #346, avoid None screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed May 6, 2019
1 parent 97fa1dd commit cc61c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions var/www/modules/showpaste/Flask_showpaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def get_item_screenshot_path(item):
screenshot = r_serv_metadata.hget('paste_metadata:{}'.format(item), 'screenshot')
if screenshot:
screenshot = os.path.join(screenshot[0:2], screenshot[2:4], screenshot[4:6], screenshot[6:8], screenshot[8:10], screenshot[10:12], screenshot[12:])
else:
screenshot = ''
return screenshot

def showpaste(content_range, requested_path):
Expand Down

0 comments on commit cc61c99

Please sign in to comment.