Skip to content

Commit a7ec67f

Browse files
authored
Merge pull request #1322 from JohnVillalovos/jlvillal/missing_vars
fix: undefined name errors in v4 objects
2 parents d90be1e + 48ec9e0 commit a7ec67f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

gitlab/v4/objects/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ def list(self, **kwargs):
5050
if isinstance(obj, list):
5151
return [self._obj_cls(self, item) for item in obj]
5252
else:
53-
return base.RESTObjectList(self, self._obj_cls, obj)
53+
return RESTObjectList(self, self._obj_cls, obj)

gitlab/v4/objects/projects.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
from .notification_settings import ProjectNotificationSettingsManager
3232
from .packages import ProjectPackageManager
3333
from .pages import ProjectPagesDomainManager
34-
from .pipelines import ProjectPipelineManager, ProjectPipelineScheduleManager
34+
from .pipelines import (
35+
ProjectPipeline,
36+
ProjectPipelineManager,
37+
ProjectPipelineScheduleManager,
38+
)
3539
from .push_rules import ProjectPushRulesManager
3640
from .releases import ProjectReleaseManager
3741
from .runners import ProjectRunnerManager
@@ -556,10 +560,10 @@ def upload(self, filename, filedata=None, filepath=None, **kwargs):
556560
* ``markdown`` - Markdown for the uploaded file
557561
"""
558562
if filepath is None and filedata is None:
559-
raise GitlabUploadError("No file contents or path specified")
563+
raise exc.GitlabUploadError("No file contents or path specified")
560564

561565
if filedata is not None and filepath is not None:
562-
raise GitlabUploadError("File contents and file path specified")
566+
raise exc.GitlabUploadError("File contents and file path specified")
563567

564568
if filepath is not None:
565569
with open(filepath, "rb") as f:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy