Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on rendering site page if image not found on filesystem #1114

Closed
olfway opened this issue Apr 28, 2017 · 0 comments
Closed

Exception on rendering site page if image not found on filesystem #1114

olfway opened this issue Apr 28, 2017 · 0 comments

Comments

@olfway
Copy link

olfway commented Apr 28, 2017

Issue type: bug report

Python version: 2.7.13
NetBox version: v2.0-beta3-1-gb8b912b

  1. attach image to site
  2. remove image from /media/image-attachments/ directory

You will get exception when you will try to open site page:

In template /opt/netbox/templates/inc/image_attachments.html, error at line 15
<td>{{ attachment.image.size|filesizeformat }}</td>
...
OSError: [Errno 2] No such file or directory: '/opt/netbox/media/image-attachments/site_1_netbox_Uzu3qPE.png'
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants