There was an error while loading. Please reload this page.
1 parent 8e6dc52 commit 89db482Copy full SHA for 89db482
1 file changed
src/borg/archiver.py
@@ -3,6 +3,15 @@
3
import sys
4
import traceback
5
6
+# quickfix to disallow running borg with assertions switched off
7
+try:
8
+ assert False
9
+except AssertionError:
10
+ pass #OK
11
+else:
12
+ print("Borg requires working assertions. Please run Python without -O and/or unset PYTHONOPTIMIZE")
13
+ sys.exit(2) # == EXIT_ERROR
14
+
15
try:
16
import argparse
17
import collections
0 commit comments