Fix for _test_url
Snapshot test threw a 500 Internal Error. After some investigation (no exception got thrown, except in debug mode) I noticed that the test url function tried to access octoprint util which was not imported. Because util was used in different locations of this function I decided to put it at the top of the function right after import requests.
This commit is contained in:
1 parent
033e567d2a
commit
88a962b3ab
1 file changed
+1
@@ -343,6 +343,7 @@ def _test_path(data):
|
||||
|
||||
def _test_url(data):
|
||||
import requests
|
||||
from octoprint import util as util
|
||||
|
||||
class StatusCodeRange(object):
|
||||
def __init__(self, start=None, end=None):
|
||||
|
||||
Reference in new issue
Block a user