Skip to content

Commit 4f5be81

Browse files
committed
fix: Support non-Microsoft implementations of the EWS API with non-standard verrsion numbers
1 parent 562b0a0 commit 4f5be81

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

exchangelib/version.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def __init__(self, major_version, minor_version, major_build=0, minor_build=0):
2525
self.minor_version = minor_version
2626
self.major_build = major_build
2727
self.minor_build = minor_build
28-
if major_version < 8:
29-
raise ValueError(f"Exchange major versions below 8 don't support EWS ({self})")
3028

3129
@classmethod
3230
def from_xml(cls, elem):

tests/test_build.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
class BuildTest(TimedTestCase):
77
def test_magic(self):
8-
with self.assertRaises(ValueError):
9-
Build(7, 0)
108
self.assertEqual(str(Build(9, 8, 7, 6)), "9.8.7.6")
119
hash(Build(9, 8, 7, 6))
1210

0 commit comments

Comments
 (0)