Simplify assertion for AVALON_DEADLINE value, it must at least have a value

This commit is contained in:
Roy Nieterau 2018-02-12 13:55:31 +01:00
parent ffbf25f4c0
commit 66dba81efd

View file

@ -77,8 +77,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
AVALON_DEADLINE = api.Session.get("AVALON_DEADLINE",
"http://localhost:8082")
assert AVALON_DEADLINE is not None, "Requires AVALON_DEADLINE"
assert AVALON_DEADLINE, "Requires AVALON_DEADLINE"
context = instance.context
workspace = context.data["workspaceDir"]