We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f74fe2 commit 5733229Copy full SHA for 5733229
1 file changed
ompackagemanager/updateinfo.py
@@ -1,4 +1,3 @@
1
-import OMPython
2
import os
3
from github import Github
4
from atlassian import Bitbucket
@@ -8,8 +7,16 @@
8
7
import re
9
import shutil
10
import requests
+import warnings
11
import zipfile
12
13
+try:
14
+ import OMPython
15
+except ImportError:
16
+ OMPython = None
17
+ warnings.warn("Failed to load module OMPython.")
18
+
19
20
from ompackagemanager import common
21
22
bitbucket = Bitbucket(url="https://api.bitbucket.org")
@@ -64,6 +71,9 @@ def main():
64
71
gh_auth = os.environ["GITHUB_AUTH"]
65
72
g = Github(gh_auth)
66
73
74
+ if OMPython is None:
75
+ raise Exception("Module OMPython missing, aborting!")
76
67
77
omc = OMPython.OMCSessionZMQ()
68
78
69
79
data = json.load(open("repos.json"))
0 commit comments